You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Raises a Fatal error: exception Invalid_argument("react.component calls can only be on function definitions or component wrappers (forwardRef, memo).").
Is there any way to achieve this?
The text was updated successfully, but these errors were encountered:
@jchavarri pointed me in the direction of writing the make and makeProps functions by hand instead of using [@react.component], which worked for what I needed. It would definitely be nice for the PPX to allow annotations, though.
I’m just wondering whats a difference between type a. props(a) and props(‘a). I’ve never seen the first version of syntax. Is there any piece of documentation about it?
There seems to be no way to use local abstract types when using [@react.component]:
Defining a polymorphic local abstract type like this:
Raises a
Fatal error: exception Invalid_argument("react.component calls cannot be destructured.")
.And defining a simple local abstract type:
Raises a
Fatal error: exception Invalid_argument("react.component calls can only be on function definitions or component wrappers (forwardRef, memo).")
.Is there any way to achieve this?
The text was updated successfully, but these errors were encountered: