Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.