import React from 'react'; import * as utils from '../utils'; export default class Article extends React.Component { render() { const content = this.props.content; const jumper = content.description.filter((node) => { return node.type === 'h2'; }).map((node) => { return
  • { node.children }
  • ; }); return (

    { content.meta.title }

    { jumper.length > 0 ?
    : null } { content.description.map(utils.objectToComponent) }
    ); } }