-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Complete React 16 support #1553
Copy link
Copy link
Open
Description
Overarching project: https://github.com/airbnb/enzyme/projects/4
- Error Boundaries
- componentDidCatch
- Improve filenames in stack (Improve display of filenames in component stack facebook/react#12059)
-
getDerivedStateFromError(Support getDerivedStateFromError #2036)
- Portals
- React.Fragment
- Rendering non-jsx
- General issues around our use of private APIs
- New context APIs in 16.3
- New React context API adds new tag types #1509
- Add support for react context element types, fixes #1509 #1513
- dive() breaks when using the new context API. #1647
- Invalid propType warning when rendering a Provider with no surrounding elements #1737
- Dive shallow in a Context Consumer #1908
-
contextType(16.6) (wrappedComponent doesn't actually pass context values down in tests #2189, upstream PR) - better support for render props (Add renderProp to ShallowWrapper #1863)
- forwardRef
- createRef
-
<React.StrictMode />: https://reactjs.org/docs/strict-mode.html- include mode in component stack (Include Modes in the component stack facebook/react#13240)
-
<React.unstable_AsyncMode />/<React.unstable_ConcurrentMode />: -
lazy/Suspense(16.6, Support Suspense #1917) -
memo(16.6, Newmemofeature from React 16.6 is not supported #1875) - hooks (16.8, Testing Hooks with shallow: Invariant Violation #1938)
- Profiler (support unstable_Profiler #2054, fix: add Profiler support for adapter-react-16 #2233)
Reactions are currently unavailable