Declaring JSX types in TypeScript 5.1

This page summarizes the projects mentioned and recommended in the original post on dev.to

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  1. rfcs

    RFCs for changes to React (by reactjs)

    However, in React, function components can return a ReactNode. This type includes number | string | Iterable | undefined and will likely also include Promise( in the future.

  2. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  3. TypeScript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

    In an effort to address the issue described in the previous section, Sebastian opened a pull request to TypeScript: “RFC: Consult new JSX.ElementType for valid JSX element types". In that PR, Sebastian explained the issue and proposed a solution — introducing a new type, JSX.ElementType.

  4. DefinitelyTyped

    The repository for high quality TypeScript type definitions.

    The TypeScript pull request was merged, so Sebastian (who helps maintain the React type definitions) exercised new powers in this pull request to the DefinitelyTyped repository for the React type definitions. At the time of writing, this pull request is still open, but once merged and shipped the React community we will feel its benefits.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Functional Programming with TypeScript's Type System

    2 projects | news.ycombinator.com | 16 Apr 2023
  • TypeScript PR merged to allow components to return anything renderable (raw strings, numbers, promises for RSC), instead of just JSX.Element and null.

    2 projects | /r/reactjs | 15 Apr 2023
  • Thinking in ReScript

    3 projects | dev.to | 11 Aug 2021
  • Merging to objects in a type-safe way with Lodash?

    2 projects | /r/typescript | 11 Mar 2021
  • Why Become a TypeScript Fan?

    3 projects | news.ycombinator.com | 10 Mar 2021

Did you know that TypeScript is
the 2nd most popular programming language
based on number of references?