- 1

what is jsx in intro to react?

what is jsx in intro to react?what are its features? explain advantages/disadvantages of react?

21st Jun 2020, 11:37 AM
deepak sharma
deepak sharma - avatar
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
21st Jun 2020, 3:47 PM
šŸ‡®šŸ‡³VivekšŸ‡®šŸ‡³
šŸ‡®šŸ‡³VivekšŸ‡®šŸ‡³ - avatar
- 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.
21st Jun 2020, 11:39 AM
deepak sharma
deepak sharma - avatar