I am trying to use some jQuery UI functionality in my reactJS/Redux application. I've imported both jQuery and jQuery UI using:
npm install jquery jquery-ui
And then I've tried:
import $ from 'jquery';
import jQuery from 'query';
import jQuery-ui from 'jquery-ui';
However jQuery UI does not seem to be imported when I try to do something like:
componentDidMount() {
$('ol#myList').selectable();
}
I believe the issue is with jQuery UI. What am I doing wrong? How can I get jQuery UI to work with this stack?
Thank you!
componentDidMount
callback – ZekeDroid Feb 7 '16 at 22:22console.log($)
after you import$
? – Alex Palcuie Feb 7 '16 at 22:22componentDidMount()
, I edited my question. – Leopold Joy Feb 7 '16 at 22:25selectable()
function doesn't seem to work. – Leopold Joy Feb 7 '16 at 22:27