React (software): Difference between revisions

Content deleted Content added
m Clarifies that React can also be used with server-rendered frameworks like Next.js, which serve a different purpose than single-page applications. Cross links to the Next.js wiki page for more information.
Line 110:
===JSX===
{{Main|JSX (JavaScript)|l1=JSX}}
[https://tekolio.com/what-is-jsx-in-react-and-why-is-it-important/ 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]].
 
An example of JSX code: