Introduction Want to level up your ServiceNow widgets? Third-party libraries can add that extra flair without much hassle. In this blog, I’ll show you how to seamlessly integrate them into your widgets for a smoother and more powerful user experience...
What is createPortal As per the official documentation, createPortal let us render some children into a different part of the DOM. In simple words,createPortal lets you to render the component outside the current parent, or hierarchy. In above diag...
Introduction Have you ever tried adding a Virtual Agent to your custom ServiceNow portal and felt it was more complicated than it should be? Don’t worry, you’re not alone! In this blog, I’ll walk you through the easy steps to get a Virtual Agent up a...
createPortal lets you render some children into a different part of the DOM. <div> <SomeComponent /> {createPortal(children, domNode, key?)} </div> createPortal(children, domNode, key?) To create a portal, call createPortal, passing some JSX, an...
Introduction If you've ever wondered how Dr. Strange effortlessly travels through different dimensions, you'll love React Portals! Imagine them as your secret weapon for web design magic. With React Portals, you can do something similar – move elemen...
React portals are a way to render a component outside of its parent component’s DOM tree. This can be useful in situations where you want to render a component over multiple parts of the page, or when you want to render a component outside of the cur...
React is a great UI library that utilizes component-based architecture. In simple words, a React app is built using components that represent specific screens or elements in the app. These components follow the single responsibility principle and are...
Whenever you need to take content with functionality from a component and put it somewhere else on the page, you can use a react portal. For example, if you have an input component that outputs some text in a div, you can pass that div to a portal a...
The Nifty Solution to a Messy Problem If you've ever sat down to create a Modal then you probably must have faced a hard time. Cause how do you build a Modal, to show up on clicking another component? If you build it inside the button component it go...
What are REACT portals? React portals provide a way to render children into a DOM node that exists outside the DOM hierarchy of the parent component. Think of it as Doctor Strange teleporting people through his sling rings 😀 Now, what does it actua...