Skip to content

Latest commit

 

History

History
30 lines (25 loc) · 761 Bytes

README.md

File metadata and controls

30 lines (25 loc) · 761 Bytes

SSR-STATIC-WEBSITE-EXAMPLES

To run JSX:

Install Next.JS using npm or yarn. For example:

npx create-next-app my-static-ssr-app
cd my-static-ssr-app

After doing this, add the code located in pages/

After creating the page, you can run your Next.JS app:

npm run dev

This command starts the development server, and you can access your app at http://localhost:3000.

To run TSX:

Install Next.JS with Typescript:

npx create-next-app my-static-ssr-app --use-npm --typescript
cd my-static-ssr-app

After doing this, add the code located in pages/

After creating the page, you can run your Next.JS app:

npm run dev

This command starts the development server, and you can access your app at http://localhost:3000.