What do you want to save?
Add Code snippet
New code examples
-
CSS 2021-11-10 14:01:16
How to add object in an array using useState
import React, { useState } from 'react'; function App() { const [items, setItems] = useState([]); // handle click event of the button to add item const addMoreItem = () => { &nb... Add solution