Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem: state #133

Open
noxbxx opened this issue Nov 26, 2017 · 0 comments
Open

problem: state #133

noxbxx opened this issue Nov 26, 2017 · 0 comments

Comments

@noxbxx
Copy link

noxbxx commented Nov 26, 2017

problem:
1 1: import React from 'react';
2 19: <table style={{border: "2px solid black"}}>
3 44: <td style={{border: "1px solid black"}}>


4 47: <td style={{border: "1px solid black"}}>{this.props.title}
5 48: <td style={{border: "1px solid black"}}>{this.props.children}
6 54: title: React.PropTypes.string.isRequired

solution

  1. import React from 'react';
    import PropTypes from 'prop-types';
  2. title: PropTypes.string.isRequired
    
  3. {this.props.title} {this.props.children}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant