This is a simple React project following an old-school approach without using modern build tools like Webpack.
This project demonstrates a basic React setup without modern build tools, using a simple HTML file with script tags.
- Basic React component structure
- Minimal configuration without a build tool
- Node.js and npm installed
Clone the repository and install dependencies:
git clone https://github.com/samir1498/old-school-react.git
cd old-school-react
npm install
-
Run the build process:
npm run build
This command will transpile your JSX files and create the corresponding JavaScript files.
-
Open the
index.html
file in your browser:- Navigate to the project directory in the terminal.
- Open the
index.html
file in your preferred browser.
open index.html
Or simply double-click the
index.html
file in your file explorer.