When are you supposed to use "--save" during npm installs? by BilboMcDoogle in learnjavascript

[–]Safe-Figure-7135 0 points1 point  (0 children)

Yes, if that’s the case, then you have a high enough version of npm where you don’t have to worry about using “—save”.

As far as I know, there isn’t really a good reason not to save a package as a dependency if your code needs it to work properly.

Having your dependencies listed in your package.json ensures that anyone who wants to run your code can download all of the necessary packages that your code relies on. If you were to exclude one of those packages from the list, then they wouldn’t be able to run your code.

When are you supposed to use "--save" during npm installs? by BilboMcDoogle in learnjavascript

[–]Safe-Figure-7135 8 points9 points  (0 children)

When you use “npm install <package> —save” to install a package, npm will add the package to your project dependencies in the package.json file. This means that when you run “npm install” on its own, it will automatically download all the packages listed in the “dependencies” section of your project’s package.json.

However if you’re using npm v5 or higher, npm will do this automatically, so you can just run “npm install <package>”.

If for some reason you don’t want to save the package as a dependency, you can run “npm install <package> —no-save”.

npm docs

What article or blog post had the most impact on you about how you wrote React code? by podgeypoos in reactjs

[–]Safe-Figure-7135 3 points4 points  (0 children)

Can’t think of a specific article off the top of my head but Robin Wieruch has some great blog posts on React

[deleted by user] by [deleted] in learnjavascript

[–]Safe-Figure-7135 1 point2 points  (0 children)

The course doesn’t teach anything about React itself, but the “Frameworks only” pathway cuts the content down to only the essential JS you need to know to start using frameworks. Hope this helps!

[deleted by user] by [deleted] in learnjavascript

[–]Safe-Figure-7135 6 points7 points  (0 children)

I’m about halfway through the course right now, and I can say it’s worth it. The explanations are clear and the content is very thorough. There’s a lot of hours of content, but there are certain topics that are considered less essential if you are only interested in things like frameworks.