react-magic icon indicating copy to clipboard operation
react-magic copied to clipboard

onclick attribute not getting renamed to onClick

Open jeffvandyke opened this issue 8 years ago • 1 comments

On http://magic.reactjs.net/htmltojsx.htm, I was able to almost perfectly convent a huge chunk of text, but I thought I should let someone know that the onclick attribute is not converting to onClick. Perhaps onclick="alert('hi'); return false;" could be converted to onClick={() => { alert('hi'); return false; }}, just as a suggestion. Thanks for this tool!

jeffvandyke avatar Aug 17 '17 20:08 jeffvandyke

Feel free to submit a pull request adding this, if you think it'll be useful :)

Daniel15 avatar Nov 20 '17 04:11 Daniel15