-
-
Save bakasura980/419deae23105456609034e6ae97c3b4e to your computer and use it in GitHub Desktop.
EOSLime shape todo-form render
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ./renders/todo-form.js | |
const TodoFormHtml = function (context) { | |
return ( | |
<div> | |
<form> | |
<!-- | |
"context" here is TodoApplication class from index.js file | |
By clicking Add button it will go in TodoApplication.addTodo function | |
--> | |
<button type="button" onClick={context.addTodo}>Add</button> | |
</form> | |
<!-- New Todo description --> | |
<input type="text" onChange={context.onNewTodoDescription} placeholder="Description" /> | |
</div> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment