3 ms·
You can use React to render static websites. You get the nice component model and the speed of static content. You can take a look at the react native[1][2] web
by vjeux 11y ago
You can use React to render static websites. You get the nice component model and the speed of static content. You can take a look at the react native[1][2] website for an example.
[1] http://facebook.github.io/react-native/ http://facebook.github.io/react-native/
[2] https://github.com/facebook/react-native/blob/master/website/core/Site.js https://github.com/facebook/react-native/blob/master/website...
- ivan_ah 11y agoThat's pretty cool way to structure websites: https://github.com/facebook/react-native/blob/master/website/layout/DocsLayout.js https://github.com/facebook/react-native/blob/master/website... The chain of build steps is quite complex though... but hey, if it works...
- jhgg 11y agoWe've got our entire marketing site statically rendered. Looking forward to react 15, should get rid of lots of "data-reactid"s which should shave a bit off of the size of the rendered html.
- madeofpalk 11y agoYou can actually do that at the moment with ReactDOMServer.renderToStaticMarkup(), which doesn't create any react-ids (but can't be used later by React on the client)