Error: Objects are not valid as a React child (found: object with keys {initialState}). If you meant to render a collection of children, use an array instead.
I was having no problems until the instructor highlights a word and converts it with a shortcut that I can't figure out how to do on windows machine.
Here is where the initialState to a different type with a shortcut that I am missing. I tried a workaround by adding curly braces that worked at first. Please advise as the code won't work at this point.
const [name, setName] = useState({initialState: 'John'});
I have the same issue with the handler and the timeout in the following:
setTimeout({handler: () => {
firstName = 'Jane'
}, timeout: 5000})
can you please advise on the shortcut to change the type correctly?