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

Support React.Context in transpilation #136

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

ctizen
Copy link
Contributor

@ctizen ctizen commented Oct 21, 2021

Resolves #80

@@ -15,6 +16,8 @@ const defaultProps: React.InputHTMLAttributes<any> = {
// @elephizeTarget
export const Radio: React.FunctionComponent<React.InputHTMLAttributes<any>> = (inputProps) => {
const props = { ...defaultProps, ...inputProps };
const { useContext } = React;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

всегда нужно внутри функции брать useContext из реакта, или это просто опечатка

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.

Поддержать React.Context
2 participants