Portfolio-Web-Application
Portfolio-Web-Application copied to clipboard
Update index.js
Improvements:
- React.StrictMode: Wraps the component tree to help identify potential issues during development.
- Error Handling: Added a fallback if the root element is not found to avoid runtime errors.
- Alias for BrowserRouter: Used Router alias for brevity and consistency.
- Validation for Root Element: Ensures the root element exists before rendering.