Quantcast
Channel: ReScript Forum - Latest posts
Viewing all articles
Browse latest Browse all 1819

How to pass a component constructor as a prop

$
0
0

Ah yes that is shorter. I typically just use render functions which are most of the time sufficient for my needs. I think this is the first time I see an FCM as a default parameter.

We usually don’t advise to use them since they are quite syntax-heavy and make prototyping harder as you cannot infer types from usage but must declare a module type up front.


Viewing all articles
Browse latest Browse all 1819

Trending Articles