I am trying to use spread operator in my react+typescript app but it says “Type ‘object | null’ must have a ‘Symbol.iterator’ method that returns an iterator.”
What should I do? what’s the syntax?
It says “Type ‘object | null’ must have a ‘Symbol.iterator’ method that returns an iterator.”
how to use Symbol.iterator with react+typescript
New contributor
Yoftahe Abraham is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.