Created
November 23, 2017 18:34
-
-
Save rlax/013274d14c3f8ee0382eecae3c69d89c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
new webpack.ProvidePlugin({ | |
$: 'jquery', | |
jQuery: 'jquery' | |
}), | |
в вебпак конфиге | |
"jquery": "3.2.1", | |
в package.json, потом npm install | |
в любом модуле | |
... | |
componentDidMount() { $('.jq').addClass('worked'); } | |
... | |
render() { return (<div className="jq" />) } | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment