🎯 React component for transportation of modals, lightboxes, loading bars... to document.body or else.
v4.0.0
was a complete rewrite that utilizes React v16 Portal API. However, we dropped support for older Reacts. That can be a problem for library authors that still want to support older Reacts.
So, version v4.1.0.
adds a fallback in case that Portal API doesn't exist. Now you can use the same react-portal with React v16 and v15.
It removes React.PropTypes
and uses prop-types
lib instead.
https://github.com/tajo/react-portal/pull/105
shallowCompare()
since it doesn't really do anythingreact-portal
div. Use a wrapper div (or other element) instead. This is a braking change if you rely on this functionality; thus, major release.openByClickOn element is not wrapped by unnecessary div element anymore
openByClickOn
removedFor more info: https://github.com/tajo/react-portal/pull/40