const todoItems = todos.map((todo) => <li key={todo.id}> {todo.text} </li> ); ... There is no need to specify the key here: return <li>{props.value}</li>;} ...
確定! 回上一頁