feat: add missing propTypes

This commit is contained in:
kasia.oczkowska
2024-07-11 08:54:32 +01:00
parent 725b38c697
commit 3f5df118a0
53 changed files with 597 additions and 81 deletions
@@ -1,7 +1,9 @@
import ReactDOM from 'react-dom';
const Portal = ({ children }) => {
return typeof document === 'object'
? ReactDOM.createPortal(children, document.body)
: null;
};
export default Portal;