Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 1.01 KB

File metadata and controls

29 lines (20 loc) · 1.01 KB

User input example

Introduction to React

Running the application

yarn install && yarn start

Open User input example subpage.

User input

React documentation on forms

Components in the example

  • App has been updated to add a new comment to local state whenever a comment is submitted from CommentForm. This is done by passing a callback function to CommentForm.
  • CommentForm has been added two text inputs, one that can be changed and one that cannot. Read the component documentation (and React official documentation) on how controlled and uncontrolled components work.