You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Referencing Environment Variables in the HTML](#referencing-environment-variables-in-the-html)
@@ -585,7 +586,7 @@ Alternatively, you can force the linter to ignore any line by adding `// eslint-
585
586
586
587
You don’t have to use [React Bootstrap](https://react-bootstrap.github.io) together with React but it is a popular library for integrating Bootstrap with React apps. If you need it, you can integrate it with Create React App by following these steps:
587
588
588
-
Install React Bootstrap and Bootstrap from NPM. React Bootstrap does not include Bootstrap CSS so this needs to be installed as well:
589
+
Install React Bootstrap and Bootstrap from npm. React Bootstrap does not include Bootstrap CSS so this needs to be installed as well:
Now you are ready to use the imported React Bootstrap components within your component hierarchy defined in the render method. Here is an example [`App.js`](https://gist.githubusercontent.com/gaearon/85d8c067f6af1e56277c82d19fd4da7b/raw/6158dd991b67284e9fc8d70b9d973efe87659d72/App.js) redone using React Bootstrap.
611
612
613
+
### Using a Custom Theme
614
+
615
+
Sometimes you might need to tweak the visual styles of Bootstrap (or equivalent package).<br>
616
+
We suggest the following approach:
617
+
618
+
* Create a new package that depends on the package you wish to customize, e.g. Bootstrap.
619
+
* Add the necessary build steps to tweak the theme, and publish your package on npm.
620
+
* Install your own theme npm package as a dependency of your app.
621
+
622
+
Here is an example of adding a [customized Bootstrap](https://medium.com/@tacomanator/customizing-create-react-app-aa9ffb88165) that follows these steps.
623
+
612
624
## Adding Flow
613
625
614
626
Flow is a static type checker that helps you write code with fewer bugs. Check out this [introduction to using static types in JavaScript](https://medium.com/@preethikasireddy/why-use-static-types-in-javascript-part-1-8382da1e0adb) if you are new to this concept.
0 commit comments