react-jquery-plugin
v1.1.7
Published
[![NPM](https://img.shields.io/npm/v/react-jquery-plugin.svg)](https://www.npmjs.com/package/prestein-dante) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
Downloads
3,118
Readme
React jquery plugin
This tool will help you to use jquery plugins like easing
, ScrollMagic
, Nice Select
,etc.. in react very easy.
Install
npm install --save react-jquery-plugin
Usage
import React, { Component } from 'react'
import { $ } from 'react-jquery-plugin'
class Example extends Component {
componentDidMount() {
$(window).scroll(() => {
// put your code here
});
}
render () {
return (
<div>
<h1>Hello there</h1>
</div>
)
}
}
or
import React, { Component } from 'react'
import 'react-jquery-plugin'
class Example extends Component {
componentDidMount() {
window.$(window).scroll(() => {
// put your code here
});
}
render () {
return (
<div>
<h1>Hello there</h1>
</div>
)
}
}
Show your support
Give a ⭐️ if you like this project!
Acknowledgments
- I would like to thank our code reviewer and anyone else who participated in making this done.
📝 License
This project is MIT licensed.