Skip to content
T

tcomb-react

Type checking for React components

by gcantiFree

#1138in UI Libraries
0In stores

Description

tcomb-react is a library for checking React component props with tcomb types, as an alternative to PropTypes. Its main default is that props…

Highlights

  • Props required by default
  • Checks for unwanted extra props
  • Decorator and propTypes function options
  • Babel plugin for Flow annotations
  • Extracts component documentation

Ratings & Reviews

No ratings yet

Be the first to rate tcomb-react.

People also visit

T

tcomb-form-native

react-native powered UI library for developing forms writing less code

UI Libraries
Launch
R

react-toggle

An elegant, accessible toggle component for React. Also a glorified checkbox

UI Libraries
Launch
R

@rockshin/tao-ui

A modern React component library

UI Libraries
Launch
R

react-albus

React component library for building declarative multi-step flows

UI Libraries
Launch
T

typescript-react-reviewer

Expert code reviewer for TypeScript + React 19 applications

AI Skills
Get
R

react-mentions-ts

A React component that enables Facebook/Twitter-style @mentions

UI Libraries
Launch

tcomb-react FAQ

What is tcomb-react?

A library that checks React component props with tcomb types, as an alternative to PropTypes.

Are props required by default?

Yes. The README says this is a saner default, because it is easy to forget isRequired.

Does it reject extra props?

By default it checks for unwanted additional props. Pass the strict option as false to turn that off.

Which React versions were tested?

The README lists React 0.13, 0.14 and 15 as tested, and says other versions may also work.

How do I use it with a stateless component?

Use the propTypes function. The README shows it with a stateless component and with React.createClass in ES5.

What are the best tcomb-react alternatives?

Popular alternatives to tcomb-react include tcomb-form-native, react-toggle and @rockshin/tao-ui. See all tcomb-react alternatives

Developer Stuff

Badges