Skip to content

coder-academy/todo-react-challenge

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Components

Review the project and add a few more todo items.

Challenge:

  • Add a H1 title to the todo list (My Todo list)
  • Add a H2 title to the todo list (Things I need to get done!)
  • Wrap the H1 & H2 in a div with the class name 'heading'
  • Update the CSS to add a backgound colour to the heading div
  • Move the div heading to it's own function called Heading
  • Turn todos into an array of hashes with 'task' and 'complete' properties.
  • Show "Complete!" next to a task if it's complete.
  • There's a great bootstrap/react plugin. Take a look at the components: https://reactstrap.github.io/components/
  • Use some reactstrap component like ListGroup & ListGroupItem to pretty up the app.
  • Use a badge to indicate a completed task.
  • Move the todo list into its own function.
  • Move the todo list into its own file in components/todo-list.js (export/import)
  • Pass the todo list through props. E.g. <ToDoList tasks={toDos} />
  • Console is giving you an error about 'unique "key" prop.'. Research + resolve. Hint: you'll need to add an 'id' to each task

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 71.0%
  • HTML 22.7%
  • CSS 6.3%