added a hyphen (-) between "browser" and "based" (#28251)

This commit is contained in:
impactlearner
2019-01-18 19:37:35 -05:00
committed by Tom
parent 9c12dfce4f
commit 1c4f697e2e

View File

@ -14,7 +14,7 @@ We are building a website (something that will be run in browsers), so we will i
`npm install --save react-router-dom` `npm install --save react-router-dom`
### The Router ### The Router
When starting a new project, you need to determine which type of router to use. For browser based projects, there are <BrowserRouter> and <HashRouter> components. The `<BrowserRouter>` should be used when you have a server that will handle dynamic requests (knows how to respond to any possible URI), while the <HashRouter> should be used for static websites (where the server can only respond to requests for files that it knows about). When starting a new project, you need to determine which type of router to use. For browser-based projects, there are <BrowserRouter> and <HashRouter> components. The `<BrowserRouter>` should be used when you have a server that will handle dynamic requests (knows how to respond to any possible URI), while the <HashRouter> should be used for static websites (where the server can only respond to requests for files that it knows about).
Usually it is preferable to use a `<BrowserRouter>`, but if your website will be hosted on a server that only serves static files, then the `<HashRouter>` is a good solution. Usually it is preferable to use a `<BrowserRouter>`, but if your website will be hosted on a server that only serves static files, then the `<HashRouter>` is a good solution.