How to load a jquery plugin into the reactjs

0

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

    
asked by anonymous 24.09.2018 / 15:47

0 answers