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

Rendering Recursive React Components

$
0
0

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


Viewing all articles
Browse latest Browse all 2592

Trending Articles