How to use jQuery in Salesforce Lightning Aura Component?

Step 1: Upload the jQuery library as a static resource in your Org.

Step 2: Use ltng:require to load static resource JavaScript libraries on your component.

    <ltng:require scripts="{!$Resource.YourStaticResourceName + '/jQueryFileName.js'}" />

Step 3: To utilize the library include the afterScriptsLoaded event and add the method in your aura component JS controller.

Aura Component :

    <ltng:require scripts="{!$Resource.YourStaticResourceName + '/jQueryFileName.js'}" afterScriptsLoaded="{!c.handleAfterScriptsLoaded}" />

JS Controller:

    handleAfterScriptsLoaded : function(component, event, helper) {
            console.log('jQuery Loaded');