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

Making a module optional in a parent module signature

$
0
0

I would like to pass a module Library with react components to a module Menu for instance. If the Library has a PageSubtitle component it will use it if not it will use its own.

But I guess I could use records. Buy I just thought if I could make PageTitle module optional it would be cleaner.


Viewing all articles
Browse latest Browse all 2592

Trending Articles