reasonml / reason-react

Reason bindings for ReactJS

Home Page:https://reasonml.github.io/reason-react/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add example on recursive components

cem2ran opened this issue · comments

I've seen this be asked a handful of times and think it deserves to be in the documentation.

Most recently this was posted on discord (react channel)

related: #330

commented

I don't know a way of mutually recursive components, but I found this example here:

https://reasonml.chat/t/how-to-create-recursive-component-in-reasonreact/514/6

This is the best example I've found so far. Even though it would be nicer if it were possible to spilt into multiple files.

Just leaving here for people to find.

in which i hav to add example on recursive components please tell me