japgolly/scalajs-react

Warn when hooks created in a render method

japgolly opened this issue · 1 comments

I'm surprised React didn't emit a warning for this but actually I get it, in React JS world there's no distinction between rendering and hooks, where as in Scala land, we can make that distinction. I'll see about adding our own dev warning.

Closing. Benefit too small, effort required too large