- continue working on the fork you created from lab 23
- open a new branch for today's assignment
- upon completion, create a new pull request in github
- submit a link to your PR in canvas
- students will be able to utilize proper component composition constructs
- students will be able to compose react components through the use of props
README.md
.babelrc
.gitignore
package.json
webpack.config.js
src/**
src/main.js
src/style
src/style/main.scss
refactor and add the following components:
- create a
NoteUpdateForm
component that inherits a note through props- on submit, this should update the App's state with an updated note
- include the following behavior:
- if the user double clicks on the notes content, it should switch to the edit view
- default view
- display the note content and a delete button
- the delete button should remove the note from the application's state
- edit view
- show the
NoteUpdateForm
and a cancel button onNoteUpdateForm
submit (or click of the cancel button) should switch back to the default view
- show the
your components should be nested in the following layout
App
NoteCreateForm
NoteList
NoteItem
NoteUpdateForm