How to insert bootstrap.js to react app?

 https://stackoverflow.com/questions/43722322/how-to-insert-bootstrap-js-to-react-app

With Bootstrap version 5, you also need to install popper.js.

Install

npm i bootstrap@5.2.3 @popperjs/core

Use

// /src/index.js
import "bootstrap/dist/css/bootstrap.min.css";
import "bootstrap/dist/js/bootstrap.min.js";

Check to be sure that port 22 is enabled before you reload

 https://superuser.com/questions/590600/ufw-is-active-but-not-enabled-why etting  ENABLED=yes  in  /etc/ufw/ufw.conf  did it for me. $ sudo ...