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 how to use context #227

Open
2 of 4 tasks
sandinmyjoints opened this issue Oct 21, 2024 · 1 comment
Open
2 of 4 tasks

Document how to use context #227

sandinmyjoints opened this issue Oct 21, 2024 · 1 comment

Comments

@sandinmyjoints
Copy link

  • Component or Package Name: jsx-email
  • Component or Package Version: 2.0.11

Documentation Is:

  • Missing
  • Needed
  • Confusing
  • Not Sure?

Please Explain in Detail...

I wanted to use context, and had to look at #179 to realize I needed to import { createContext, useContext } from 'jsx-email'; instead of from react.

Your Proposal for Changes

Mention that to use context, you must import these from jsx-email. Could go in the FAQ, or maybe there's a better place for it.

@shellscape
Copy link
Owner

Great suggestion. Would you be up for writing what you'd like to see in a PR?

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

No branches or pull requests

2 participants