2

I am having trouble getting rid of this warning:

You are manually calling a React.PropTypes validation function for the large prop on Button. This is deprecated and will not work in the next major version. You may be seeing this warning due to a third-party PropTypes library.

For example, I have a simple Header Component as so:

import React, { Component } from 'react';
import {Button, Icon} from 'react-materialize';

export default class Header extends Component {
  render() {
    return (
      <Button node='a' waves='light'><Icon right>file_cloud</Icon>button</Button>
    );
  }
}

Versions that I am using:

"react": "^0.14.3",
"react-materialize": "^0.15.2"
2
  • Your code looks fine. I'm pretty sure this warning related to the library you are using react-materialize. If I were you, I would have opened an issue in project and notified developers about this warning github.com/react-materialize/react-materialize/issues Commented Aug 31, 2016 at 18:50
  • Thanks for the response. It looked like I just had to update the react library Commented Aug 31, 2016 at 18:56

1 Answer 1

1

Ok solved it. It looked like I had update my React Library:

"react": "^15.3.1",
"react-dom": "^15.3.1 ",
"react-addons-test-utils": "^15.3.1"
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.