alexandersmanning/read-more-react

`text` could/should be as children

Closed this issue · 4 comments

kud commented
`text` could/should be as children

Let me think it through and look into it.

kud commented

Thanks! :)

Let me think it through and look into it.

This would help for allowing for html, because my text I'm trying to add contains bullets and breaks.

I am going to avoid this, as it adds a lot of unnecessary complexity (do I only grab from <text> tags?, do I concat each tags text, etc.). Furthermore grabbing text from children is considered an anti-pattern by the react team: facebook/react#9255