A simple Next.js starter app for your projects
In this app:
-
Next.js basic app Layout handled by
components/Page.js
-
custom _app.js file to support the layout component
-
Modular CSS examples
-
dynamic and static page examples
-
<style jsx global />
example for global Next.js styles
You can see a live demo of this repo at inextjs.now.sh
Next.js is a framework that makes it easy to create Universal web apps in React. Read more about Next.js in this post
This is a simple starter project that demonstrates how to use Next.js with custom layout and some modular and global styles via <style jsx />
and <style global jsx />
tags.
- Clone the the starter repo
git clone https://github.com/ijsto/inextjs.git
- Enter the directory
cd inextjs
- Install project dependencies
yarn
or npm install
or npm i
To run the project locally:
yarn dev
or npm run dev
Starter project is live at: http://localhost:3000
Have an idea how to make this starter better/more useful? Please submit a PR.
JavaScript tutorials at iJS.to