Callback

๐Ÿงโ€โ™‚๏ธ I've added a useEffect, but it's not supported yet so the app's busted:
useEffect(() => {
	console.info('consider yourself effective!')
})
You can check my work if you'd like. Can you fix it? Thanks!
๐Ÿ‘จโ€๐Ÿ’ผ Sure thing Kellie, thanks!
Ok, so what we need to do here is going to feel a little familiar. We'll want to create an effects array that stores all the callbacks. Then our useEffect hook implementation will actually be pretty darn simple: get the ID for our hook, add the callback to the effects array. We don't even have to return anything.
The tricky bit will be to make the appRoot.render call synchronous with flushSync so we can iterate through all the effects to call the callback.
I think you can do it. Let's go!

Access Denied

You must login or register for the workshop to view and run the tests.

Check out this video to see how the test tab works.