DEV Community

Cover image for A little bit of knowledge about ReactJS.
Tusar
Tusar

Posted on

A little bit of knowledge about ReactJS.

Q1. What is NPM?
NPM or “Node Package Manager” is the default package manager for JavaScript run time environment node.js.

Q2. What is Yarn?
Yarn is a JavaScript package manager created by Facebook. Yarn stands for Yet Another Resource Negotiator. It provides similar functionalities as NPM. It is an alternative to NPM when installing, uninstalling, and managing package dependencies from the NPM registry or GitHub repositories.

Q3. What is CLI?
CLI is a command line program that accepts text input to execute operating system functions.

Q4. What is NPX?
NPX stands for Node Package Executor. It is a new addition to NPM version 5.2.0 or higher. NPX helps you to execute one-off commands. With NPX, you can run/execute packages from the NPM registry without installing them to your project dependencies.

Q5. What is a module and package in JavaScript?
A module is a single JavaScript file that has some reasonable functionality. A package is a directory with one or more modules inside of it and a package.json file that has metadata about the package.

Q6. What is WebPack?
Webpack is a tool that lets you compile JavaScript modules, also known as module bundlers. Given a large number of files, it generates a single file (or a few files) that runs your app.

Q7. What is a dependency?
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.

Q8. What is create-react-app?
Create React App is a comfortable environment for learning React and is the best way to start building a new single-page application in React. It sets up your development environment so that you can use the latest JavaScript features, provides a nice developer experience, and optimizes your app for production.

Q9. What is ?
React StrictMode is sort of a helper component that will help you write better react components, you can wrap a set of components with

Q10. What is reportWebVitals()?
Create React App includes a built-in tool for measuring the real-life performance of your app. It is called reportWebVitals() and it measures a set of metrics that aim to capture the user experience of a web page.

Top comments (0)