Skip to content

latviancoder/useJquery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

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" />;
}

About

An essential hook for your React applications.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •