Web Dev Simplified
My name is Kyle and I have been a full stack web developer since 2015. I have a Computer Engineering degree, but am…courses.webdevsimplified.com useState Initial State Computation useState(() => {
/* Slow computation */
}) Updating State Objects setPreferences(prevPreferences => {
return { ...prevPreferences, theme: 'dark' }
}) useEffect useEffect(() => {
console.log('This is my side effect')
return () => {
console.log('This is my clean up')
}
})