index.js:1 Warning: Failed prop type: The prop `expandableRows` is marked as required in `<<anonymous>>` code example

Example: index.js:1 Warning: Failed prop type: The prop `expandableRows` is marked as required in `<>`

// You explicitly use propTypes and even use isRequired, which is exactly what it sounds like.
Login.propTypes = {
  propName: PropTypes.func.isRequired
};

// But in your Page component, you don't provide a prop name `propName`. You just have it as this:


// If `propName` is fundamentally needed for that component to work, you need to pass it in.
 myFunction()} />

// In my case a `propName` that was fundamentally needed for a third party component to work was missing. I needed to pass it in, instead of null or undefined

Tags:

Misc Example