react-polyfill-patch
v1.1.9
Published
React polyfills patch
Downloads
19
Maintainers
Readme
react-polyfill-patch
Polyfills patch for React new api
Support
Usage
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';
Checkout usages below