Skip to content

Instantly share code, notes, and snippets.

@codeBelt
Last active October 13, 2020 17:29
Show Gist options
  • Save codeBelt/3a534429b04100107217a632384ecfea to your computer and use it in GitHub Desktop.
Save codeBelt/3a534429b04100107217a632384ecfea to your computer and use it in GitHub Desktop.
export const PortalOut = (props) => {
const { portalMap } = useContext(PortalContext);
return portalMap.get(props.portalType) || null;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment