You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Everything you love about Create React App plus
server-side code support (SSR, GraphQL API, etc) and config overrides (Babel, Webpack, etc.). See
the demo project.
React App SDK is intended to be used as a drop-in replacement for react-scripts NPM module.
If you want to add server-side code into your application built with Create React App, all you have
to do is to replace react-scripts dev dependency with react-app-tools plus provide one more
entry point for Node.js as demonstrated below:
Directory Layout
. +-- build/ # Compiled output +-- src/ # Universal application source code | +-- components/ # Shared React.js components | | +-- /App/ # - The top-level React component | | +-- /Button/ # - Some other UI element | | +-- ... # - etc. | +-- server/ # Node.js app | | +-- ssr.js # - Server-side rendering, e.g. ReactDOMServer.renderToString() | | +-- api.js # - GraphQL API endpoint | | +-- index.js # - Node.js app entry point | +-- index.js # Client-side app entry point, e.g. ReactDOM.hydrate(, container) +-- package.json # List of project dependencies and NPM scripts