React Tricks: Fast, Fit and Fun

Presentation byAlexey Taktarov

In this talk, I'll uncover some tricks and hacks in React that I learned while maintaining a micro-library (2KB Router). We'll discuss performance and size optimizations, as well as the importance of keeping object references stable when passing them down as props to React components.

I'd like to cover the non-standard use of the useState hook, cloneElement API for component composition, the useSyncExternalStore hook introduced in React 18, and its caveats; as well as lesser-known non-standard hooks such as useEvent and more. To demonstrate these tricks, we'll built a fake multiplayer client component.

Get in touch!

hi@guild.host