Content deleted Content added
No edit summary |
m Undid revision 1060075938 by 2405:201:200C:C0D7:14DC:14D0:5577:2EE2 (talk) JSX is capitalised |
||
Line 92:
* <code>render</code> is the most important lifecycle method and the only required one in any component. It is usually called every time the component's state is updated, which should be reflected in the user interface.
===
{{Main|JSX (JavaScript)|l1=JSX}}
JSX, or JavaScript [[XML]], is an extension to the JavaScript language syntax.<ref>{{cite web|title=Draft: JSX Specification|url=https://facebook.github.io/jsx/|website=JSX|publisher=Facebook|access-date=7 April 2018}}</ref> Similar in appearance to HTML, JSX provides a way to structure component rendering using syntax familiar to many developers. React components are typically written using JSX, although they do not have to be (components may also be written in pure JavaScript). JSX is similar to another extension syntax created by Facebook for [[PHP]] called [[XHP]].
|