Skip to content

Commit

Permalink
Add displayName property to context object for easier debugging with …
Browse files Browse the repository at this point in the history
…React Devtools (#30)
  • Loading branch information
Dman757 authored Feb 5, 2020
1 parent 8247d79 commit b646da0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/Elements.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ type ElementContext = {|
|};

const ElementsContext = React.createContext<?ElementContext>();
ElementsContext.displayName = 'ElementsContext';

export const parseElementsContext = (
ctx: ?ElementContext,
Expand Down

0 comments on commit b646da0

Please sign in to comment.