Questions tagged [react-proptypes]

This tag should be used if the question involves the type-checking system of React.js components, known as `PropTypes`.

React.js has a system for type-checking the arguments passed to a React.js component, known as PropTypes. This system is detailed here: https://facebook.github.io/react/docs/typechecking-with-proptypes.html.

590 questions
-1
votes
2 answers

React. PropTypes.objectOf(PropTypes.number) - how it work?

friends! I figure out why PropTypes.objectOf(PropTypes.number) does not apply to prop ar ? I want to do a type checking before release, but it does not work. import React from 'react'; import ReactDOM from 'react-dom'; import PropTypes from…
Max Wolfen
  • 1,523
  • 5
  • 15
  • 38
-1
votes
1 answer

Expo, React-Native] "Failed prop type" error

I'm making a simple To DO App with react-native and expo xde. This is my repo that makes error.(develop branch, commit…
KunhoLee
  • 25
  • 4
-1
votes
2 answers

How to load a imported component dynamically based on its name inside a styled element?

today i have a question concerning the REACT package styled-components. What I'm trying to accomplish is to create a styled div-component, which will be used as a parallax-container and has to load a certain image as its background. Now I could…
Patrick S.
  • 19
  • 3
-1
votes
1 answer

How to manually call custom PropType validators in React v16

I have a use case where I need to write a custom React PropType validator. Within that checker I want to do two things: 1) validate that the prop names inside the object, which are dynamically generated, are all md5 hashes, and 2) validate the…
fraxture
  • 4,346
  • 3
  • 32
  • 70
-2
votes
1 answer

The above error occurred in the component: in App

I started the Knowthen Go/React tutorial and I've some problem with React. When i try to launch my app, i've got this error and i can't figure out why. Here's my github repo with all my sources:…
G.D
  • 442
  • 1
  • 4
  • 13
1 2 3
39
40