{/* resets scroll on every route change */}
} />
} />
} />
} />
} />
} />
} />
} />
} />
} />
} />
} />
{/* floating WhatsApp chat widget */}
{/* visible after 300 px scroll */}
)
}
export default App
```
--------------------------------
### Build and Preview Project Locally
Source: https://github.com/bbnpm5/ipc-hebron/blob/master/HOSTING.md
Run these commands to build your project for production and test it locally before deployment.
```bash
npm run build
# Test locally
npm run preview
```
--------------------------------
### Build Project for Production
Source: https://github.com/bbnpm5/ipc-hebron/blob/master/README.md
Execute this command to create an optimized production build of the website.
```bash
npm run build
```
--------------------------------
### Initialize Git Repository and Push to GitHub
Source: https://github.com/bbnpm5/ipc-hebron/blob/master/HOSTING.md
Commands to initialize a Git repository, add files, commit changes, link to a remote GitHub repository, and push the code.
```bash
git init
git add .
git commit -m "Initial commit"
git remote add origin https://github.com/yourusername/ipc-hebron.git
git push -u origin main
```
--------------------------------
### React App Entry Point and Root Mounting
Source: https://context7.com/bbnpm5/ipc-hebron/llms.txt
This snippet shows the main entry point for the React application, where the app is rendered in strict mode and i18n is initialized. Ensure i18n is imported before the App component renders.
```jsx
// src/main.jsx
import React from 'react'
import ReactDOM from 'react-dom/client'
import App from './App.jsx'
import './index.css'
import './i18n' // must be imported before App renders
ReactDOM.createRoot(document.getElementById('root')).render(