![]() Note: Node / NPM is not required to create a React project. To install day.js, we would run: npm install dayjsĪnd NPM will automatically grab that library's code and add it to our node_modules folder ✨ With Node and NPM (or another package manager like Yarn), we can simply run a command to install whatever JavaScript library we like. Without Node and NPM, if you wanted to add a new JavaScript library to your React project (like day.js, a library used for formatting dates), you would need to manually add a set of tags and manage them yourself. When combined with a package manager like NPM (which you get at the same time you install Node), it serves as a powerful tool to easily manage libraries within your React projects. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |