← All React exercises

React implementation · 12

UseArray()

StatusNot taken

Problem

When array is used in React state, we need to deal with actions such as push and remove. Implement useArray() to make life easier. const {value, push, removeByIndex} = useArray([1, 2, 3])

Solution

No solution file is included for this exercise yet.

Use the problem as an open implementation prompt, then compare your reasoning with the linked React documentation.