Become a member
to unlock all features

Level Up!

Access all courses & lessons on egghead today and lock-in your price for life.


    What is JSX?

    Chris BiscardiChris Biscardi

    JSX is a language extension to JavaScript for representing tree structures used heavily in the React ecosystem... but it's not only used with React!



    Become a Member to view code

    You must be a Member to view code

    Access all courses and lessons, track your progress, gain confidence and expertise.

    Become a Member
    and unlock code for this lesson




    Chris Briscardi: 0:00 JSX is used by a number of projects that represent tree structures in JavaScript. The JSX specification makes it clear that this is not a proposal to be included in X script itself, but rather is meant to be used by transpilers and compilers to compile into working JavaScript.

    0:15 One of the most common tree structures on the web is HTML, but JSX is often used to represent structures that end up rendering HTML. As shown in the spec, you can also use JSX for high order obstructions.

    0:28 As JSX is not tied to any particular framework, you can use it in any project you want. This is what allows projects like React and MDX to take advantage of JSX. React uses JSX to represent components, while MDX uses JSX as a target so that it can support not only React, but also Vue and other frameworks.

    0:48 While JSX is predominant approach, there are alternate paths being taken by frameworks such as FEL. Even frameworks such as Vue that support JSX can end up recommending a less powerful approach for most use cases in their documentation.