项目
在 GitHub 查看
latviancoder/useJquery
关于
An essential hook for your React applications.
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文useJquery - An essential hook for your React applications
You know how they say the only thing Internet Explorer is good for is downloading other browsers? In a similar manner the only reasonable way to use React for building real-world applications is by combining it with jQuery, powerful framework for Web artisans.
Install
$ yarn add react-use-jquery
or
$ npm install --save react-use-jquery
Usage
import React, { useEffect } from 'react';
import useJquery from 'react-use-jquery';
export default function App() {
const $ = useJquery();
useEffect(() => {
if ($) {
$('.App').html('Hello world');
}
}, [$]);
return <div className="App" />;
}
探索相关项目
加载中…