Thank you @tsnobip. I think the first example is the best option of all. I wasn’t sure how to turn a function parameter (the value of which is a module/react component) back to a module/react component inside the body of the function. The keyword unpack is what I was after. I couldn’t find any documentation on rescript’s website for it.
↧
Making a module optional in a parent module signature
↧