gaearon / react-document-title

Declarative, nested, stateful, isomorphic document.title for React
MIT License
1.86k stars 105 forks source link

Purely return props.children, allowing multiple children #53

Open serprex opened 6 years ago

serprex commented 6 years ago

Closes #48

flaviouk commented 5 years ago

@gaearon Merge this anytime soon?

serprex commented 5 years ago

If there's controversy over how this changes more than necessary, all that needs to really be done for #48 is removing the call to React.Children.only

silverwind commented 5 years ago

Bump! Having to wrap <DocumentTitle>'s children in <React.Fragment> is so unnecessary.