When I inject the modal component into the dom it renders fine. However, if I wrap that component and then render the new component into the dom. Nothing renders other than root.
Working component:
ReactDOM.render((
<Modal visible={true}>
<div> hello world </div>
</Modal>
), document.getElementById('root'));
Wrapped component that wont render:
ReactDOM.render((
<DeleteEntityModal />
), document.getElementById('root'));
This contains:
const DeleteEntityModal = () => {
return (
<Modal
visible={true}
>
<div>
hello world
</div>
</Modal>
);
};
export default DeleteEntityModal;