Skip to content

Commit

Permalink
missing "context."
Browse files Browse the repository at this point in the history
  • Loading branch information
exitudio committed Oct 16, 2017
1 parent 21871ec commit 807f8c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api/ReactWrapper/setContext.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import React from 'react';
import PropTypes from 'prop-types';

function SimpleComponent(props, context) {
return <div>{name}</div>;
return <div>{context.name}</div>;
}
SimpleComponent.contextTypes = {
name: PropTypes.string,
Expand Down

0 comments on commit 807f8c3

Please sign in to comment.