Skip to content

Instantly share code, notes, and snippets.

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