filmov
tv
How to implement Routing In ReactJS || ReactJS Tutorials

Показать описание
Routing In ReactJS
============
In React, Routing means rending another component in existing main component.
React Router has been broken into three packages: react-router, react-router-dom, and react-router-native.
react-router = core routing components and functions for React Router applications
React-router-dom = provide DOM related routing like a & link element
React-router-native = it’s is used for native application like android and mobile app
React Router introduces several different router types that are useful for various environments where routing is typically needed.
BrowserRouter
NativeRouter
StaticRouter
HashRouter
MemoryRouter
They are all available to suit your needs and requirements.
============
In React, Routing means rending another component in existing main component.
React Router has been broken into three packages: react-router, react-router-dom, and react-router-native.
react-router = core routing components and functions for React Router applications
React-router-dom = provide DOM related routing like a & link element
React-router-native = it’s is used for native application like android and mobile app
React Router introduces several different router types that are useful for various environments where routing is typically needed.
BrowserRouter
NativeRouter
StaticRouter
HashRouter
MemoryRouter
They are all available to suit your needs and requirements.