Re:Crank.js – Write JSX-driven components with functions, pr...
by TomMarius on Sunday April 19, 2020 @08:30AM
(#22915454)
Yeah but you also wouldn't try to return in the middle of function argument declarations. I know it's a little weird, but just treat it as a declaration block and you won't have any problems, what you're proposing is impossible with react architecture as a whole anyways (because the next component would get wrong state cells, it's a stack).
[ Parent
| on HN ]
There are no comments on this comment yet.