react-rte icon indicating copy to clipboard operation
react-rte copied to clipboard

Update readme instructions for import PropTypes

Open spchaplin opened this issue 5 years ago • 0 comments

Please update the following instructions in your readme:

import React, {Component, PropTypes} from 'react';

Because PropTypes is now a separate package, and not part of React anymore, I think this should read:

import React, {Component} from 'react';
import PropTypes from 'prop-types';

Otherwise, the user will get a build error that Proptypes.func is not defined.

You might also note that the user will need to install PropTypes with npm install prop-types

Thanks for your consideration!

spchaplin avatar Nov 11 '20 20:11 spchaplin