# Example with portals## How to useDownload the example [or clone the repo](https://github.com/zeit/next.js):```bashcurl https://codeload.github.com/zeit/next.js/tar.gz/master | tar-xz--strip=2 next.js-master/examples/with-portalscd with-portals```Install it and run:```bashnpm installnpm run dev```Deploy it to the cloud with [now](https://zeit.co/now)([download](https://zeit.co/download))```bashnow```## The idea behind the exampleThis example show how to use the React [Portals](https://reactjs.org/docs/portals.html) feature with Next.js.