Open magicmark opened 6 years ago
Currently, we use tagRef to pass along a ref to the actual underlying DOM element https://github.com/Yelp/lemon-reset/blob/b55997c667857941bd023d7225b6931368e6f1fb/README.md#L48
tagRef
Looks like there's a new API to address just this though: https://reactjs.org/docs/forwarding-refs.html
it can be useful for some kinds of components, especially in reusable component libraries
Sounds like us :P
Let's implement this, and get rid of the tagRef prop in a v2 release.
consider using ref: https://react.dev/blog/2024/04/25/react-19#ref-as-a-prop
Currently, we use
tagRef
to pass along a ref to the actual underlying DOM element https://github.com/Yelp/lemon-reset/blob/b55997c667857941bd023d7225b6931368e6f1fb/README.md#L48Looks like there's a new API to address just this though: https://reactjs.org/docs/forwarding-refs.html
Sounds like us :P