Skip to content

How to use Portal without rendering the parent element. (If it's a reasonable ask 馃槄) #3149

Answered by diegohaz
crisshaker asked this question in Questions
Discussion options

You must be logged in to vote

In that case, since you're not using any special features from Ariakit Portal, simply use ReactDOM.createPortal directly:

return createPortal(children, containerElement);

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@crisshaker
Comment options

Answer selected by crisshaker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants