### Run React Development Server with npm start
Source: https://github.com/purple-technology/react-camera-pro/blob/master/example/README.md
Starts the React application in development mode. It opens the app in the browser at http://localhost:3000 and reloads on code changes. Any lint errors are displayed directly in the console.
```Shell
npm start
```
--------------------------------
### Install react-camera-pro via npm
Source: https://github.com/purple-technology/react-camera-pro/blob/master/README.md
Command to install the react-camera-pro package using npm.
```shell
npm install --save react-camera-pro
```
--------------------------------
### Eject Create React App Configuration with npm run eject
Source: https://github.com/purple-technology/react-camera-pro/blob/master/example/README.md
Removes the single build dependency from a Create React App project, copying all configuration files (Webpack, Babel, ESLint, etc.) directly into your project. This is a one-way operation that provides full control over the build setup but means the user is responsible for managing these configurations going forward.
```Shell
npm run eject
```
--------------------------------
### Build React App for Production with npm run build
Source: https://github.com/purple-technology/react-camera-pro/blob/master/example/README.md
Builds the React application for production deployment. This command correctly bundles React in production mode, optimizes the build for best performance, minifies code, and includes hashes in filenames, preparing the app for deployment.
```Shell
npm run build
```
--------------------------------
### Execute React Tests with npm test
Source: https://github.com/purple-technology/react-camera-pro/blob/master/example/README.md
Launches the test runner in interactive watch mode. This command allows developers to run tests and see results as code changes, facilitating a rapid testing workflow and improving development efficiency.
```Shell
npm test
```
--------------------------------
### Handle Multiple Cameras and Switch Modes
Source: https://github.com/purple-technology/react-camera-pro/blob/master/README.md
Illustrates how to detect the number of available cameras using numberOfCamerasCallback and programmatically switch between 'user' and 'environment' cameras using switchCamera().
```javascript
const Component = () => {
const camera = useRef(null);
const [numberOfCameras, setNumberOfCameras] = useState(0);
const [image, setImage] = useState(null);
//...
return (