📜  js和jsx的区别——Javascript代码示例

📅  最后修改于: 2022-03-11 15:03:59.683000             🧑  作者: Mango

代码示例1
JavaScript is just like any normal programming language without any additional library or framework. It can also be referred to as pure/vanilla JavaScript.

On the other hand, JSX is the syntactic sugar in JavaScript, a syntactic sugar is a syntax within a programming language that is designed to make things easier to read or to express. JSX is mostly used in JavaScript along with library/framework support like in ReactJS or ReactNative.