The thing I'm adding is being able to show what the DevTools Profiler will show you when you run it, embedded in the docs themselves.
The thing I'm adding is being able to show what the DevTools Profiler will show you when you run it, embedded in the docs themselves.
Here's an example: react.dev/reference/de...
Here's an example: react.dev/reference/de...
github.com/reactjs/reac...
github.com/reactjs/reac...
Thank you to @ricky.fm the updates, and @danabra.mov and @stephanjnoel.bsky.social for reviewing
Thank you to @ricky.fm the updates, and @danabra.mov and @stephanjnoel.bsky.social for reviewing
The thought process should be the same with or without the dependency array.
The thought process should be the same with or without the dependency array.
Also thanks to @danabra.mov, @aurorascharff.no @stephanjnoel.bsky.social, @brenelz.com for adding feedback
Also thanks to @danabra.mov, @aurorascharff.no @stephanjnoel.bsky.social, @brenelz.com for adding feedback
"This lets you call this function from a Effect as an "event". Since it's an event, the Effect does not need to include it as a dependency. Please read Dan's learn docs about this, they're very good."
"This lets you call this function from a Effect as an "event". Since it's an event, the Effect does not need to include it as a dependency. Please read Dan's learn docs about this, they're very good."