I'm trying to load a selectpicker bootstrap plugin into a reactjs project the problem that occurs is the time to start the plugin it does not load.
import $ from 'jquery';
componentDidMount() {
$('.selectpicker').selectpicker();
}
componentDidUpdate() {
$('.selectpicker').selectpicker();
}
being the plugin files (css, js) already being loaded into the project structure