React component to wrap non SSR components.
When working with Server Side Rendering(SSR) enabled apps, you have to deal with client only components. This wrapper makes it simple to work with those components.
npm i --save react-no-ssr
Comments is our client only component. Now we need to render it only on the client. Here’s how we do it.
import React from 'react'; import NoSSR from 'react-no-ssr'; import Comments from './comments.jsx'; const MyPage = () => ( <div> <h2>My Blog Post</h2> <hr /> <NoSSR> <Comments /> </NoSSR> </div> );
We are a world class software startup focusing on building scalable, high-performance web & mobile application. We have started our journey back in 2015. And in those years we have provided support for more than 15 thousand customers over the world. We build products that create values. RedQ, Inc