layershifter / babel-plugin-transform-react-handled-props

Generates handledProps from defaultProps and propTypes during the build :sparkles:
MIT License
19 stars 4 forks source link

fix(plugin): fix in processing string props #35

Closed layershifter closed 6 years ago

layershifter commented 6 years ago

Expected behavior

Correctly transform:

Example.propTypes = {
  'aria-label': PropTypes.string,
};

Actual behavior

Thrown exception.


This PR fixes work with string props, see added fixtures for details.