Rax createRef forwardRef polyfill
npm install rax-polyfill-refrax-polyfill-ref> Polyfill for Rax new ref api
>= rax@0.6.5
``jsx
import { createRef, forwardRef } from 'rax-polyfill-ref';
const ref = createRef();
function App() {
return (
// forwardRef
const ref = createRef();
const Input = forwardRef((props, ref) => {
return
});
const App = () => {
return (
For more usage, see
You can use it with rax-polyfill-context and rax-polyfill-hooks