- 1
what is jsx in intro to react?
what is jsx in intro to react?what are its features? explain advantages/disadvantages of react?
2 Answers
0
You don't need jsx in react. You can use js files instead of jsx files.
Recommended way is to use jsx
- 1
JSX is an XML/HTML-like syntax used by React that extends ECMAScript so that XML/HTML-like text can co-exist with JavaScript/React code. ... Unlike the past, instead of putting JavaScript into HTML, JSX allows us to put HTML into JavaScript.
he benefits of having all the app state in one place is having one source of truth. Another benefit is it makes it easier to inspect changes in the app and captures the different states of the app. This helps when trying to reproduce errors. The Virtual DOM allows the UI to be efficient in diffing UI changes
The important features of ReactJS are as following.
JSX.
Components.
One-way Data Binding.
Virtual DOM.
Simplicity.
Performance.