prop-types
prop-types copied to clipboard
Thank You & Special characters bug
Thanks for this great tool! It saved me a lot of time.
One miner error i found is that json varables with special character are not escaped. The following input
{
"foo-bar": "100"
}
gives back invalid javascript code:
React.PropTypes.shape({
foo-bar: React.PropTypes.string
});
the expected output would be:
React.PropTypes.shape({
'foo-bar': React.PropTypes.string
});