On the heels of our announcement of free static deployments earlier today, we are excited to introduce a beta release of the upcoming Next.js 3.0, featuring next export , dynamic components and various bugfixes.
Next.js allows you to write React applications with server-rendering, automatic code-splitting, built-in component CSS with one command. To get started, populate pages/my-route.js directory with a file that exports a component:
export default ( ) => (
< p > Welcome to my React App ! < / p >
)
Install it with npm install next react react-dom , run next and navigate to http://localhost:3000/my-route . That's it! To learn more, read the 5-minute README or check out our 2.0 announcement blogpost .
Link to heading Next-Export
Until today, you would run next to develop, next build to compile the production app and next start to serve it.
We are now introducing a new subcommand: next export . It will seamlessly build your Next.js app as a standalone static website.…