sstur / react-rte

Pure React rich text WYSIWYG editor based on draft-js.
https://react-rte.org
ISC License
2.86k stars 430 forks source link

Update readme instructions for import PropTypes #390

Open spchaplin opened 3 years ago

spchaplin commented 3 years ago

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!