// @flow
import React from 'react'
type PropsA = {
children?: React.Node
}
const A = (props: PropsA) => (
{props.children}
)
const ComponentA = () => Test
type PropsB = {
children: React.Element
}
const B = (props: PropsB) => (
{props.children}
)
const ComponentB1 = () => // error
const ComponentB2 = () => text // error
const ComponentB3 = () => text // works!
const ComponentB4 = () => foobar // error