lyft/react-javascript-to-typescript-transform

Remove `import PropTypes from 'prop-types'`

vincentbel opened this issue · 1 comments

Using PropTypes in any other way than annotating React components with them is no longer supported. So I think it's safe to remove the import declaration.

I'll open an PR if you agree this. @mohsen1

Yes I agree. There is also import React, {PropTypes} from 'react' import statement that we need to remove PropTypes from named import clause