Guest User

Untitled

a guest
Jun 18th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. import React from 'react'
  2. import {Helmet} from 'react-helmet'
  3.  
  4.  
  5. export default (props) => (
  6. <div id={props.id?props.id:""}>
  7. {
  8. props.title ||
  9. props.description ||
  10. props.keywords ?
  11. <Helmet>
  12. {props.title ? <title>{props.title}</title> : null}
  13. {
  14. props.description ? <meta name="description"
  15. content={props.description}/>:null
  16. }
  17. {
  18. props.keywords ?
  19. <meta name="keywords"
  20. content={props.keywords}/> : null
  21. }
  22. </Helmet> : null
  23. }
  24. {props.children}
  25. </div>
  26. )
Add Comment
Please, Sign In to add comment