R
R
rueyjnpr42018-06-03 01:58:20
JavaScript
rueyjnpr4, 2018-06-03 01:58:20

Connecting third-party libraries to the project?

I do not understand the essence of connecting third-party libraries to my project.
For example, I want to install jQuery. I'm importing npm i jquery --save. Ok, the node_modules folder has been created, in which there are a bunch of other folders, among which, if we try, we will find the jquery folder, which has a lot of source files. So, what is next? How to connect it, let's say, to the made-up page? How do you do this for example?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ilya, 2018-06-03
@ilyapashkov02

You need to connect to a file that will be further processed by a collector, such as webpack or similar

S
Sergiu Mitu, 2018-06-03
@EaGames

import $ from 'jquery';
//или
require('jquery');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question