Skip to content

Give context as a second argument when invoking stateless function component#13

Open
asyncmax wants to merge 1 commit into
elierotenberg:masterfrom
asyncmax:add-context-to-func-component
Open

Give context as a second argument when invoking stateless function component#13
asyncmax wants to merge 1 commit into
elierotenberg:masterfrom
asyncmax:add-context-to-func-component

Conversation

@asyncmax

@asyncmax asyncmax commented Feb 8, 2018

Copy link
Copy Markdown

Stateless function components get context as a second argument. I couldn't find official documentation for that but some libraries (e.g. react-popper) depend on it and crash without it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant