sungwoncho/compconv

Check if a jsx expression is a prop.

sungwoncho opened this issue · 0 comments

Check if a jsx expression is indeed a prop. (You could probably check if the identifier exists in context.props).

bug:

...
<DotsIcon width={17} height={17} fill="gray" />
...

turns into

...
<DotsIcon width={this.props.17} height={this.props.17} fill="gray" />
...