title: bootstrap & navbar collapse don't work react (create-react-app)
body: <p>I'm trying to use: bootstrap 4 navbar and it wouldn't collapse on react.
  <a href="https://getbootstrap.com/docs/4.0/components/navbar/#supported-content" rel="noreferrer">https://getbootstrap.com/docs/4.0/components/navbar/#supported-content</a></p>
  
  <p>could someone explain why?
  I'm assuming this could be because will need to amend to components to change states? but it is just my guess. </p>
  
  <pre><code>import React from "react";
  import ReactDOM from "react-dom";
  
  import registerServiceWorker from "./registerServiceWorker";
  // styles
  import "../node_modules/jquery/dist/jquery.min.js";
  import "../node_modules/bootstrap/dist/css/bootstrap.min.css";
  
  ReactDOM.render(
  &lt;nav className="navbar navbar-expand-lg navbar-light bg-light"&gt;
    &lt;a className="navbar-brand" href="#"&gt;Navbar&lt;/a&gt;
    &lt;button  className="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"&gt;
      &lt;span  className="navbar-toggler-icon"&gt;&lt;/span&gt;
    &lt;/button&gt;
  
    &lt;div  className="collapse navbar-collapse" id="navbarSupportedContent"&gt;
      &lt;ul  className="navbar-nav mr-auto"&gt;
        &lt;li  className="nav-item active"&gt;
          &lt;a  className="nav-link" href="#"&gt;Home &lt;span  className="sr-only"&gt;(current)&lt;/span&gt;&lt;/a&gt;
        &lt;/li&gt;
        &lt;li  className="nav-item"&gt;
          &lt;a  className="nav-link" href="#"&gt;Link&lt;/a&gt;
        &lt;/li&gt;
        &lt;li  className="nav-item dropdown"&gt;
          &lt;a  className="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"&gt;
            Dropdown
          &lt;/a&gt;
          &lt;div  className="dropdown-menu" aria-labelledby="navbarDropdown"&gt;
            &lt;a  className="dropdown-item" href="#"&gt;Action&lt;/a&gt;
            &lt;a  className="dropdown-item" href="#"&gt;Another action&lt;/a&gt;
            &lt;div  className="dropdown-divider"&gt;&lt;/div&gt;
            &lt;a  className="dropdown-item" href="#"&gt;Something else here&lt;/a&gt;
          &lt;/div&gt;
        &lt;/li&gt;
        &lt;li  className="nav-item"&gt;
          &lt;a  className="nav-link disabled" href="#"&gt;Disabled&lt;/a&gt;
        &lt;/li&gt;
      &lt;/ul&gt;
      &lt;form  className="form-inline my-2 my-lg-0"&gt;
        &lt;input  className="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search"/&gt;
        &lt;button  className="btn btn-outline-success my-2 my-sm-0" type="submit"&gt;Search&lt;/button&gt;
      &lt;/form&gt;
    &lt;/div&gt;
  &lt;/nav&gt;
  , document.getElementById("root"));
  registerServiceWorker();
  </code></pre>