Skip to content

Latest commit

 

History

History
49 lines (34 loc) · 1.08 KB

File metadata and controls

49 lines (34 loc) · 1.08 KB

NEXT.js

'next' is not recognized as an internal or external command, operable program or batch file

    npm install
    npm install react react-dom next

Start json-server to serve a json file in the root of your project

    npx json-server -w db.json -p 3500 -H 127.0.0.1

ClassName with Quotes instead of Curly Braces in WebStorm

Change Add for JSX attributes: value in Settings | Editor | Code Style | HTML | Other to Quotes

Useful NPM packages

limiter

Create a new NextJs project

    npx create-next-app@latest

What is your project named? ./
√ Would you like to use TypeScript?  Yes
√ Would you like to use ESLint?  Yes
√ Would you like to use Tailwind CSS? Yes
√ Would you like your code inside a `src/` directory?  No
√ Would you like to use App Router? (recommended)  Yes
√ Would you like to use Turbopack for `next dev`?  Yes
√ Would you like to customize the import alias (`@/*` by default)? No 

How to start a NextJs Project

    run npm dev

React Fragment

    <><h1>Hello</h1>   <>