How to use the react-beautiful-dnd.resetServerContext function in react-beautiful-dnd

To help you get started, weโ€™ve selected a few react-beautiful-dnd examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pubpub / pubpub / server / utils / index.js View on Github external
export const renderToNodeStream = (res, reactElement) => {
	res.setHeader('content-type', 'text/html');
	ReactBeautifulDnD.resetServerContext();
	return ReactDOMServer.renderToNodeStream(reactElement).pipe(res);
};