We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- React
- Components
- Item List Manager
- Discussions
Item List Manager
Item List Manager
Sort by
recency
|
8 Discussions
|
Please Login in order to post a comment
setItems([...items, input]); setInput('');
&
disabled={!input?.length} on button
`const handleAddItem = () => {
if (input.trim()) { setItems([...items, input]); setInput(''); } };
const handleAddItem = () => {
};
// TODO: Add logic to add input to items list if(input.length > 0){