Example: https://jsfiddle.net/gingur/u0h2rjae/1/

When generating **child context** with a stateless Component, the context is not available to the children.

return <div ref="me" />;
    }
    expect(function() {
      ReactTestUtils.renderIntoDocument(<Child test="test" />);
    }).toThrowError(
      'Stateless function components cannot have refs.'
    );
  });
  it('should warn when given a ref', function() {
    spyOn(console, 'error');
    var Parent = React.createClass({
      displayName: 'Parent',
      render: function() {
        return <StatelessComponent name="A" ref="stateless"/>;
      },
    });
    ReactTestUtils.renderIntoDocument(<Parent/>);
    expect(console.error.calls.count()).toBe(1);
    expect(console.error.calls.argsFor(0)[0]).toContain(
      'Stateless function components cannot be given refs ' +
      '(See ref "stateless" in StatelessComponent created by Parent). ' +
      'Attempts to access this ref will fail.'
    );
  });
  it('should provide a null ref', function() {
    function Child() {