React/Rax polyfills for ref, context and hooks
version < v16.3
import {
// memo
memo,
// ref
createRef,
forwardRef,
// Fragment
Fragment,
// PureComponent
PureComponent,
// portal
createPortal,
// context
createContext,
// hooks
withHooks,
useRef,
useState,
useContext,
useReducer,
useEffect,
useLayoutEffect,
useMemo,
useCallback,
useImperativeHandle
} from 'react-polyfill-all';
import 'react-polyfill-patch';
import {
// memo
memo,
// ref
createRef,
forwardRef,
// Fragment
Fragment,
// PureComponent
PureComponent,
// context
createContext,
// hooks
useRef,
useState,
useContext,
useReducer,
useEffect,
useLayoutEffect,
useMemo,
useCallback,
useImperativeHandle
} from 'react';
import { createPortal } from 'react-dom';
version <= 0.6.7
import {
// memo
memo,
// ref
createRef,
forwardRef,
// context
createContext,
// hooks
withHooks,
useRef,
useState,
useContext,
useReducer,
useEffect,
useLayoutEffect,
useMemo,
useCallback,
useImperativeHandle
} from 'rax-polyfill-all';