Open kleinspire opened 3 years ago
The following seems to work though:
@react.component
let make = () => {
React.useMemo0(() => "rescript + react + emotion + styled-ppx rocks!")
}
Hey @webican
Seems like the logic to detect if hooks are being called on the top have a bug where considers the useMemo call to be "inside" the JSX transformation.
I will look into it, since there are a few cases that this linter isn't aligned with what the ESLint plugin does.
Thanks for reporting
The following code:
...triggers an error: