reason-react icon indicating copy to clipboard operation
reason-react copied to clipboard

Add example on recursive components

Open cem2ran opened this issue 5 years ago • 3 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)

cem2ran avatar May 17 '20 17:05 cem2ran

related: https://github.com/reasonml/reason-react/issues/330

cem2ran avatar May 17 '20 17:05 cem2ran

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.

GTDev87 avatar Jun 13 '20 14:06 GTDev87

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

manishkumar123456 avatar Jul 11 '23 09:07 manishkumar123456