Skip to content

Repository files navigation

04_react

React.js is a JavaScript library which is help to build best, fast and complex UI (User Interface).

Command in React

for New App with npx

npx create-react-app 01basicreact

for Build with npm

 npm run build

for New App with vite

npm create vite@latest

for NPM install (Node Module)

npm i

for NPM Run

npm run dev

Syntax Name

fragment

<></>

Tailwind Install (vite).

Install Tailwind CSS

Install tailwindcss and @tailwindcss/vite via npm.


npm install tailwindcss @tailwindcss/vite

Configure the Vite plugin

Add the @tailwindcss/vite plugin to your Vite configuration.

import{defineConfig}from'vite'importtailwindcssfrom'@tailwindcss/vite'exportdefaultdefineConfig({plugins: [tailwindcss(),],})

Import Tailwind CSS

Add an @import to your CSS file that imports Tailwind CSS.

@import"tailwindcss";

Start your build process

Run your build process with npm run dev or whatever command is configured in your package.json file.


npm run dev

React functional Components (boilerplate Code)

React snippets plugin -> rfce

importReactfrom'react'functionfunctionName(){return(<div>
Content
</div>)}exportdefaultfunctionName

React Router DOM


npm install react-router-dom

About

This repository is a collection of React.js practice projects and component-based exercises designed to help you learn and master modern frontend development using React. Perfect for beginners, students, and developers aiming to strengthen their React fundamentals through hands-on coding.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages