Skip to content

Instantly share code, notes, and snippets.

@neoighodaro
Created December 5, 2017 10:44
Show Gist options
  • Save neoighodaro/abb758d213a7009470b1d2d5ad3575dc to your computer and use it in GitHub Desktop.
Save neoighodaro/abb758d213a7009470b1d2d5ad3575dc to your computer and use it in GitHub Desktop.
import React, { Component } from "react";
// Import the styles
import {styles} from "./styles";
class ToDoApp extends React.Component {
// ...
render() {
return (
<div style={styles.TodoComponent}>
<h2 style={styles.Header}>ToDo</h2>
<div>
<Input onChange={this.handleChange} />
<p style = {styles.ErrorMessage}>{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