Are React, ReactJS and React.js different names for the same thing?
If they are different, what are the differences?
CodePudding user response:
React is a utility package for UI implementation build by javascript. So the base name is "react", but you can express its language more specifically by attaching js to it and make it bound to the web. Also, it makes it distinguishable from other libraries called ReactNative.
There is no package such as react.js or ReactJs on npm and the main package is the "react" itself.
These named you've mentioned, might be for the focus on the core name itself, preventing collision from other packages with react itself
There is reactphph but the react keyword is using as a reference to this react not react in any other language or something.
CodePudding user response:
React = react = react.js = reactjs = ...
They all refer to the same JS library.
As Mentioned in their website:
React is a JavaScript library for building user interfaces
From what I know, .js
and JS
suffixes are a common thing in JavaScript world. Since React
is a general world, sometimes they call it ReactJS
to show it's a JS library.
Other examples are Next.js
, Editor.js
, Express.js
, Node.js
and so on...
Also you can see the website is reactjs.org, but it's called React in the page.