- Work in a fork of this repository
- Work in a branch on your fork
- Write all of your code in a directory named
lab-+<your name>e.g.lab-susan - Open a pull request to this repository
- Submit on canvas a question and observation, how long you spent, and a link to your pull request
Configure the root of your repository with the following files and directories. Thoughtfully name and organize any additional configuration or module files.
- README.md - contains documentation
- .gitignore - contains a robust
.gitignorefile - .eslintrc.json - contains the course linter configuration
- .eslintignore - contains the course linter ignore configuration
- .babelrc - contains babel config
- package.json - contains npm package config
- webpack.config.js - contains webpack config
- src/ - contains the frontend code
- src/components/ - contains your components
- src/main.js - contains the entire app
- src/style - containing your
.scsspartials and styles - src/style/main.scss - contains the entry point for
.scsspartials
Create the following components:
<App />
<Landing />
<Dashboard />
<NoteForm />
<NoteList />
<Noteitem />- should manage frontend routes and should contain a
<nav>(or a<Navbar />component) - the
/route should display the<Landing />component - the
/dashboardroute should display the<Dashboard />component
- should display a general welcome message and a brief description of your todo list application
- should manage the entire application state
- the state should contain a
notesarray
- the state should contain a
- should have a bound
addNote(note)method that adds a note tostate.notes- each note that gets added should have the following data
id: should contain the result ofuuid.v1()editing: false by defaultcompleted: false by defaultcontent: user provided contenttitle: user provided title
- each note that gets added should have the following data
- should have a bound
removeNote(note)method that removes a note fromstate.notesbased on itsid
onCompletethe component should add a note to the application state
- should display an
<ul>of<NoteItem />components
- should display a note and it's associated content and title
- should display a delete button
onClickthe note should be removed from the application state
