Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What exactly means dependency in react.js?

I am studying React.js., and I have started by setting the project folders to try some codes. But, some terms are confusing me as a beginner. One of them is "dependency." When I search for it, the result is only related to dependency injection stuff, but what is the "dependency" itself?

like image 219
Dawit Mesfin Avatar asked Mar 03 '23 04:03

Dawit Mesfin


1 Answers

A dependency is some third-party code that your application depends on. Just like a child depends on its parent, your application depends on other people's code. A piece of code becomes a true dependency when your own application cannot function without it.

If you want to look at the dependencies you're using, you can find them in the package.json file under the dependencies key.

like image 141
CubeDev Avatar answered Mar 08 '23 06:03

CubeDev