React how to get which props does a children need

This page summarizes the projects mentioned and recommended in the original post on /r/webdev

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • react-docgen

    A CLI and library to extract information from React component files for documentation generation purposes.

  • It’s possible, assuming you’ve typed your props using TS (maybe proptypes would work too, not sure) you can then use ReactDocGen (https://react-docgen.dev/) to have the types output in a way you can read them in code.

  • zod

    TypeScript-first schema validation with static type inference

  • Someone mentioned developing a schema below. I wanted to throw out the Zod library as something that could help with this: https://github.com/colinhacks/zod

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • ts-transformer-keys

    A TypeScript custom transformer which enables to obtain keys of given type

  • Well, you can, but there is a caveat... You would need to use a custom TS transformer. There is one that goes kinda half way to what you need: https://github.com/kimamula/ts-transformer-keys

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