SyntaxFix
Write A Post
Hire A Developer
Questions
If you're using react hooks you have to make sure that data was initialized as an array. Here's is how it must look like:
data
const[data, setData] = useState([])