Last active
December 5, 2017 10:34
-
-
Save neoighodaro/b16cda9241a78564319df9e0b2afb311 to your computer and use it in GitHub Desktop.
Styling in react snippet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ToDoApp extends React.Component { | |
// ... | |
render() { | |
return ( | |
<div style={{ backgroundColor: "#44014C", width: "300px", minHeight: "200px"}}> | |
<h2 style={{ padding: "10px 20px", textAlign: "center", color: "white"}}>ToDo</h2> | |
<div> | |
<Input onChange={this.handleChange} /> | |
<p>{this.state.error}</p> | |
<ToDoList value={this.state.display} /> | |
</div> | |
</div> | |
) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment