- First File - Hello World Component
- Simple Hello World Component
- First Component - Simple Multiple Components
- Multiple Components
- Passing Props
- Accessing Props in class and function react components
- Second Component - Simple HTML List
- Second Component - HTML Event using Button
- Second Component - Component Counter using button
- Second Component - Component className and importing styles
- Second Component - Component Styles - html inner styles
- Second Component - Component Styles - html inner styles with variables
- Second Component - Component Styles - html inner styles with styles and variables
- Second Component - Component Styles - html inner styles with variables object
- Third Component - Forms Button Event
- Third Component - Forms Text Field
- Third Component - Forms Check Box
- Third Component - Forms Multiple Form Items
- Third Component - Forms Submit Form
- Third Component - Forms Submit Form Styled
- Fourth Component
- Fourth Component
- Fourth Component
- Fourth Component
This is a Next.js project bootstrapped with create-next-app
. The nextjs app structure is used to support Typescript, and Building of ES/ TS files.
- First, Clone the repository using the following commands:
git clone https://github.com/lang-codes/codes-react-demos.git
-
Second, Install dependencies using
npm install
. -
Third, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
-
Fourth, Open http://localhost:3000 with your browser to see the result.
-
Fifth, You can start editing the page by modifying
app/page.tsx
. The page auto-updates as you edit the file. -
Sixth, This project uses
next/font
to automatically optimize and load Inter, a custom Google Font. -
Seventh,
-
Eighth, http://localhost:3000/api/hello is an endpoint that uses Route Handlers. This endpoint can be edited in
app/api/hello/route.ts
.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.