📜  反应中的jquery - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:07.255000             🧑  作者: Mango

代码示例4
class SomePlugin extends React.Component {
  componentDidMount() {
    this.$el = $(this.el);    this.$el.somePlugin();  }

  componentWillUnmount() {
    this.$el.somePlugin('destroy');  }

  render() {
    return 
this.el = el} />; } }