How to integrate jQuery in react ?

Forums ReactHow to integrate jQuery in react ?
Staff asked 2 years ago

Answers (1)

Add Answer
Staff answered 2 years ago

First of all, you need to add jQuery to your app by using following command

npm i jquery

Then import all required files in to your js file

import $ from 'jquery'

Example:

$('span').text() // you will get inner text of span tag

Subscribe

Select Categories