top of page
Search

Web Front-End Development Lab 7 Journal

  • Writer: Ninety Half
    Ninety Half
  • Nov 11, 2021
  • 1 min read

Updated: Nov 16, 2021

The to-do list should include the following functionality:

  • let users add items to the list

  • show the total number of items on the list

  • the ability to delete items from the list

For this lab I need to do the following:

  • Create a mock-up and break it into a component hierarchy.

  • Build a static version of your app in React and publish it to the creative server.

  • Document the minimal representation of state and in which component it will live.



  1. Title (blue): Just showing the lab name and do for what.

  2. AddTask (green): Receives the user's task input.

  3. ToDoList(red): Showing all the tasks now holding.

  4. DeleteButton(orange): Delete the task.

  5. TotalCount(purple): Showing the total number of tasks.

I think there will be 3 components in this app. App.js will be the parent of ToDoList.js and ToDoItem.js. TodoList.js will receive the array from the parent App.js and render it to a <ul> list. TodoList.js will go through the array, send every props to TodoItem.js, and render it to a <li>. The state will live in the component App.js.

 
 
 

Comments


©2022 by MiNG.

bottom of page