You can’t reference a module inside of itself, so you need to call the recursive make function instead.
// before
| Some(nested) => <Item item=nested />
// after
| Some(nested) => make({item: nested})
Playground link: ReScript Playground
You can’t reference a module inside of itself, so you need to call the recursive make function instead.
// before
| Some(nested) => <Item item=nested />
// after
| Some(nested) => make({item: nested})
Playground link: ReScript Playground