JSX (JavaScript): Difference between revisions

Content deleted Content added
m v2.05b - Bot T20 CW#61 - Fix errors for CW project (Reference before punctuation)
SolidJS
Line 2:
'''JSX''' ('''JavaScript Syntax Extension''' and occasionally referred as '''JavaScript [[XML]]''') is an extension to the [[JavaScript]] language syntax<ref name=":0">{{cite web|title=Draft: JSX Specification|url=https://facebook.github.io/jsx/|website=JSX|publisher=Facebook|access-date=7 April 2018}}</ref> which provides a way to structure component rendering using syntax familiar to many developers commonly used in [[React (JavaScript library)|React]]. It is similar in appearance to [[HTML]].<ref name=Larsen>{{cite book |last=Larsen|first=John|title=React Hooks in Action With Suspense and Concurrent Mode| year= 2021|publisher= Manning |isbn= 978-1720043997}}</ref>{{rp|5}}<ref name=Wieruch>{{cite book |last=Wieruch|first=Robin|title=The Road to React |publisher= Leanpub|isbn= 978-1720043997}}</ref>{{rp|11}}
 
[[React (JavaScript library)|React]] components are typically written using JSX, although they do not have to be as components may also be written in pure JavaScript. JSX is created by [[Meta Platforms|Meta]] (formerly [[Facebook]]).<ref name=":0" /><ref>{{Citation |title=JSX project repository GitHub link |date=2022-11-01 |url=https://github.com/facebook/jsx |publisher=Meta |access-date=2022-11-03}}</ref> It is similar to another extension syntax created by Meta for [[PHP]] called [[XHP]].
 
==Markup==