import modal bootstrap react

JavaScript
import {Modal} from 'react-bootstrap/modal'
Source

Also in JavaScript: