Skip to content

Instantly share code, notes, and snippets.

@neoighodaro
Last active December 5, 2017 10:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neoighodaro/b16cda9241a78564319df9e0b2afb311 to your computer and use it in GitHub Desktop.
Save neoighodaro/b16cda9241a78564319df9e0b2afb311 to your computer and use it in GitHub Desktop.
Styling in react snippet
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