Post

Just announced at React Conf - New React API available in canary: 🔥 <ViewTransition> 🔥 <Fragment ref> Particularly excited for Fragment Refs, exposing platform-specific APIs such as: - addEventListener() - observeUsing() - focus() - getClientRects() - scrollIntoView()

5 reposts35 likes

What happens if I do: observer.observe(ref.current) Because observeUsing isn't actually a platform API it makes me think something sus is happening under the hood?