<Head />


Head component is a simple wrapper for the react-helmet <Helmet /> component. It puts child items in the document head. Scripts, styles, SEO meta tags, link tag etc. can be given as children to this component. Can be used multiple times or nested.

NOTE: while copying scripts for amp components, change any boolean attributes like async to async={undefined}. Otherwise amp validator will throw an error. So <script async custom-element="amp-gfycat" src="" /> will become <script async={undefined} custom-element="amp-gfycat" src="" />

Name Type Description
params Object

object containing parameters passed to the render prop

children Object

child components

View Source atoms/head/head.tsx, line 19