evbo
evbo
I think it can be as simple as above based on how hooks are implemented as just simple functions. For instance, here are some custom hooks that are quite simple:...
this is such a great reference example on SyntheticMouseEvent as well as `React.memo`, I keep coming back to it! @mvillafuertem call me lazy, but I usually solve issues like this...
I have an`id` field that was prematurely optimized to be a long (String in JSON), so I thought I'd post some examples of custom Readers that convert the `id` field...
This is the only Scala 3 issue I've found open and I'd like to clarify: is this the minimal example on how to compile a component with Slinky in Scala...
How should `ExternalComponent` be handled in Scala 3? **Update** https://github.com/shadaj/slinky/blob/b1e7e021802d1503684f6db40aca9ed4ea80320c/core/src/main/scala-3/slinky/core/ExternalComponent.scala#L80 Super simple! So instead of `MyComp.component(MyComp.Props(..))` it's just calling the `apply` method: `MyComp(MyComp.Props(..))`
on intellij 2020.3 (Build #IC-203.5981.155), using Scala 2.13.4 and also and I get same highlighting errors as reported by @AlexITC. Also, here's a new one that took me quite a...
One more, formsubmission callbacks are syntactically correct but also get highlighted red erroneously: 
**UPDATE: this solution now permits default arguments and still curries the children** @shadaj @nadenf correct me if I'm wrong, but in the example @nadenf linked, for this to work `children`...
@jedahu I updated my earlier comment with an approach for currying children and supporting default args. A little extra code, but supports the general case of children being a function...
One other side effect of the `children: ReactElement*` argument is it forces you to specify even if you have no children: ```scala MyComponent(id = 1)() // without "()" you will...