ITG
Sign in Subscribe

react

Wrapper component for your JSX

Wrapper component for your JSX

When building any UI component, we sometimes need to wrap our entire JSX into some wrapper based on some condition. Suppose you are building a modal component and if the target prop is passed then we want to render the entire modal in a Portal else we want to render
Gaurav 16 Feb 2025

Subscribe to ITG

Don't miss out on the latest news. Sign up now to get notified for any new blog
  • Sign up
All the blogs are crafted with 💙 in Bengaluru