This is a React 16 test project that demonstrates a simple counter application with unit testing capabilities. The project serves as a template for React 16 applications with modern tooling and testing setup.
- React 16.14.0 - JavaScript library for building user interfaces
- Babel - JavaScript compiler for modern JavaScript features
- Webpack - Module bundler and development server
- Jest - JavaScript testing framework
- React Testing Library - Testing utilities for React components
- ESLint & Prettier - Code linting and formatting
-
Clone the repository
git clone git@github.com:Ankk98/react_16_test.git cd react_16_test -
Install dependencies
npm install
-
Start the development server
npm start
This will open the application in your default browser at
http://localhost:8080 -
Run tests
npm testAdditional test commands:
npm run test:watch- Run tests in watch modenpm run test:coverage- Run tests with coverage report
npm start- Starts the development servernpm build- Builds the project for productionnpm test- Runs testsnpm lint- Runs ESLintnpm format- Runs Prettier
src/- Source code directorywebpack.config.js- Webpack configuration.babelrc- Babel configuration.eslintrc.json- ESLint configuration.prettierrc- Prettier configuration
The project uses:
- React 16
- Webpack for bundling
- Babel for transpilation
- ESLint for code linting
- Prettier for code formatting