← Back to index

How to bind to an external component in ReScript?

Sat Dec 18 2021

ReScript version: rescript@9.1.4

Example binding to the Navbar component in the react-bootstrap library.

@module("react-bootstrap") @react.component
external make: (~id: string=?) => React.element = "Navbar"