1.1.2 • Published 16 days ago
celestial-flare-router v1.1.2
Celestial-flare-router
Installation
npm install celestial-flare-router
Usage
import CelestialFlareRouter from 'celestial-flare-router';
import React from 'react';
import ReactDOM from 'react-dom';
ReactDOM.render(
<React.StrictMode>
<CelestialFlareRouter />
</React.StrictMode>,
document.getElementById('root')
);
Features
- Easy-to-use routing setup
- Support for nested routes
- Integrates seamlessly with React applications
Example
import React from 'react';
import { BrowserRouter as Router, Route, Switch } from 'react-router-dom';
import CelestialFlareRouter from 'celestial-flare-router';
function App() {
return (
<Router>
<Switch>
<Route path="/">
<CelestialFlareRouter />
</Route>
</Switch>
</Router>
);
}
export default App;
License
This project is licensed under the MIT License - see the LICENSE file for details.