This tag should be used if the question involves the type-checking system of React.
PropTypes and Flow cover similar things but are using different approaches. PropTypes can give you warnings during runtime, which can …
reactjs flowtype react-proptypesI'm using redux but when I run my code I have this error: Accessing PropTypes via the main React package …
javascript reactjs redux react-proptypesI am using a custom component in a redux-form field as follows. <Field name="height" parse={value => Number(…
reactjs react-native redux-form react-proptypesHow do I mark a property as having to be a DOM element? This page says that PropTypes.element is …
reactjs react-proptypesWhat is the difference between : var Icon = React.createClass({ propTypes: { name: React.PropTypes.string }, render: function(){ return ( <span className={…
reactjs react-proptypesI am looking the redux todomvc codes. What is the static keyword in static propTypes? Thanks UPDATE No idea why …
reactjs redux react-proptypesI have a problem with PropTypes in react native my code : import React, { Component, PropTypes } from 'react'; import { Text } from …
reactjs react-native native react-proptypesI have a stateless react component import React from 'react' import styled from 'styled-components'; import PropTypes from 'prop-types'; export default …
reactjs eslint react-proptypes eslint-config-airbnbIs it possible to use React.PropTypes to enforce length's on an array? Here is a very simple case: const …
reactjs react-proptypesI have created two models State and City in separate files. Importing City in the State. State can have an …
reactjs react-proptypes