This is simple react js application. to show you the how to add task item in list array and show in separate component. Set 1 InSide App. js file import { useState } from " react "; import " ./styles.css "; import Task from " ./Task "; export default function App () { const [name, setName] = useState ( "" ); const [time, setTime] = useState ( "" ); const [list, setList] = useState ([]); const addtask = () => { setList ([...list, { task : name, time : time } ]); setName ( "" ); setTime ( "" ); } ; return ( < div className = " App " > < h1 >To do list</ h1 > < label >Name: </ label > < input type = " text " onChange = {(e) => { setName ( e . target . value ); } } value = {name} /> < br /> < br /> ...