simon360 / react-from-markup

Declare your React components with static HTML
MIT License
18 stars 4 forks source link

docs: add details on rehydrateChildren and React.Fragment #12

Closed simon360 closed 6 years ago

simon360 commented 6 years ago

Closes #8

simon360 commented 6 years ago

@monospaced wondering what you think about this docs update, explaining how to handle React.Fragment. I think this negates the need to always return a fragment, and sets expectations reasonably clearly.

Including @willtonkin and @designorant as well, for informational purposes.

monospaced commented 6 years ago

@simon360 agree, and doc looks good to me.

Could possibly clarify "may return a React.Fragment" with an example, but also fine as is.