diff --git a/website/docs/guides/routing.mdx b/website/docs/guides/routing.mdx index 3e1f255d..bdcd49b2 100644 --- a/website/docs/guides/routing.mdx +++ b/website/docs/guides/routing.mdx @@ -24,4 +24,24 @@ The recommended approach for routing in Angular is [HashLocationStrategy](https: ```ts RouterModule.forRoot(routes, {useHash: true}) -``` \ No newline at end of file +``` + +## React + +The recommended approach for routing in React is [HashRouter](https://reactrouter.com/docs/en/v6/routers/hash-router): + +```jsx +import { HashRouter } from "react-router-dom"; + +ReactDOM.render( + + {/* The rest of your app goes here */} + + } exact /> + } /> + } /> + {/* more... */} + + , + root); +```