Closed Rogeres closed 7 years ago
Hello. I want to use the @autobind decorator with this awesome React babel plugin by @gaearon
@autobind
https://github.com/gaearon/react-transform-catch-errors
But when the page loads I get Cannot set property render of #<Component> which has only a getter error in the console.
Cannot set property render of #<Component> which has only a getter
The fix is to add a setter (see the code).
I would love this for testing!
Hello. I want to use the
@autobind
decorator with this awesome React babel plugin by @gaearonhttps://github.com/gaearon/react-transform-catch-errors
But when the page loads I get
Cannot set property render of #<Component> which has only a getter
error in the console.The fix is to add a setter (see the code).