Skip to content

Instantly share code, notes, and snippets.

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>
<Input onChange={this.handleChange} />
<ToDoList value={this.state.display} />
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.