ReactJS JSX - ReactJS Tutorial - Part 5

RG3 Tech Talk
RG3 Tech Talk
24 بار بازدید - 7 ماه پیش - React JS Tutorial - Learn
React JS Tutorial - Learn React with RG3 Tech Talk and build awesome frontend app!

What is JSX
Why JSX?
React.createElement
JavaScript in JSX with Curly Braces
Passing strings with quotes
Where to use curly braces
Using double curlies
The Rules of JSX
- return() method rule
- Close all the tags
- camelCase rule
JSX stands for JavaScript XML
JSX lets you write HTML-like markup inside a JavaScript file
JSX is optional, but JSX makes it easier to write React applications
JSX should be wrapped inside top level element or React fragments
All elements must be closed
Don’t use reserved keywords words. For example, class. Instead of class we need to use className
With JSX you can write expressions inside curly braces { }
Double curly braces represents an object inside the JSX curlies
7 ماه پیش در تاریخ 1402/10/16 منتشر شده است.
24 بـار بازدید شده
... بیشتر