Skip to content

AR-DEV-1/SSR-STATIC-WEBSITE-EXAMPLES

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

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.