re: Destructuring in JavaScript VIEW POST

FULL DISCUSSION
 

Thanks Mahmoud. It was easy to digest the content.

Array destructuring section will help for those who are unfamiliar with new useState React hook (preview) as it uses array destructuring.

const [state, setState] = useState(initialState);
code of conduct - report abuse