Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document disadvantages of React context #891

Open
japgolly opened this issue Apr 5, 2021 · 1 comment
Open

Document disadvantages of React context #891

japgolly opened this issue Apr 5, 2021 · 1 comment
Labels

Comments

@japgolly
Copy link
Owner

japgolly commented Apr 5, 2021

And specifically address those considering using it to avoid plumbing args. Include alternate solutions and examples of techniques that arg plumbing easier seeing as it's a common practice with scalajs-react.

@japgolly japgolly added the doco label Apr 5, 2021
@japgolly
Copy link
Owner Author

Context hooks may mitigate some of the problems with using React context

  const locale = useContext(LocaleContext);
  const theme = useContext(ThemeContext);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant