redux-tiny-router icon indicating copy to clipboard operation
redux-tiny-router copied to clipboard

initUniversal: renderToString API changed in React 0.14

Open aeneasr opened this issue 9 years ago • 2 comments

Due to a hard dependency to React 0.13, this library does not work with React 0.14 because the rendering API of react has changed.

aeneasr avatar Nov 17 '15 14:11 aeneasr

thanks for reporting will push a new version soon

Agamennon avatar Nov 19 '15 06:11 Agamennon

Simply replace

html = React.renderToString // ...

with

import { renderToString } from 'react-dom/server';

// ...

renderToString(<Layout store={store}/>);

here and here

aeneasr avatar Nov 19 '15 09:11 aeneasr