react-cordova-boilerplate
Version:
TodoMVC example for react with development tools to build a cordova application
13 lines (11 loc) • 378 B
JSX
import React from 'react';
import ReactDOMServer from 'react-dom/server';
import App from 'src/containers/app.jsx';
import Login from 'src/containers/login.jsx';
// Disable 'no-undef' rule for this export because it's required from server, which uses nodeJs
// eslint-disable-next-line no-undef
module.exports = ReactDOMServer.renderToString(
<App>
<Login />
</App>
);