kodyl / react-document-meta

HTML meta tags for React-based apps. Works for both client- and server-side rendering, and has a strict but flexible API.
MIT License
320 stars 23 forks source link

Describe idea behind children prop #43

Open maciekmpintive opened 6 years ago

maciekmpintive commented 6 years ago

Hello,

In readme and in examples I see that you suggest to put content as children of this component. I wonder what idea is behind this kind of approach instead use it as childless tag? Explanation in readme will be great. I can create PR with it if I get the purpose.

By the way I want to ask if code in render method can not be just replaced with return {this.props.children} for sake of simplicity and back compatibility?