From 374732440b37a938b1d27955341f5dde628e2457 Mon Sep 17 00:00:00 2001 From: Alex Ghiban Date: Thu, 9 Dec 2021 16:41:51 -0500 Subject: [PATCH] Import jquery as the $ variable. If we want to use the `$` for jQuery we need to import it as such. --- frontend/encore/simple-example.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/encore/simple-example.rst b/frontend/encore/simple-example.rst index bed5c73c865..1e82c489104 100644 --- a/frontend/encore/simple-example.rst +++ b/frontend/encore/simple-example.rst @@ -182,7 +182,7 @@ Great! Use ``import`` to import ``jquery`` and ``greet.js``: // ... + // loads the jquery package from node_modules - + import jquery from 'jquery'; + + import $ from 'jquery'; + // import the function from greet.js (the .js extension is optional) + // ./ (or ../) means to look for a local file