TypeScript definitions for React, the popular JavaScript library for building user interfaces
80
Build a reusable component wrapper system that provides consistent layout and behavior for different types of child components.
Create a TypeScript module that exports wrapper components with properly typed props that work seamlessly with various child components.
Build a Card wrapper component that:
variant prop that can be "default" or "bordered"padding prop that can be "small", "medium", or "large"Build a ButtonWrapper component that:
onClick, disabled, type, etc.)icon prop of type string@generates
export function Card(props: /* YOUR TYPE HERE */): JSX.Element;
export function ButtonWrapper(props: /* YOUR TYPE HERE */): JSX.Element;Provides TypeScript type definitions for React.
Install with Tessl CLI
npx tessl i tessl/npm-types--reactdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10