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

React Strict Mode Support #169

Open
chez14 opened this issue Jan 30, 2024 · 0 comments · May be fixed by #170
Open

React Strict Mode Support #169

chez14 opened this issue Jan 30, 2024 · 0 comments · May be fixed by #170

Comments

@chez14
Copy link

chez14 commented Jan 30, 2024

Is it possible to create an new Mount to enable React Strict Mode?

Thank you.


I got warned by React DevTools that the component is not running in Strict Mode.

image

To run the component in Strict Mode, we can just wrap them with StrictMode component prior to rendering.

Ref: https://react.dev/reference/react/StrictMode

chez14 added a commit to chez14/react-to-web-component that referenced this issue Jan 30, 2024
chez14 added a commit to chez14/react-to-web-component that referenced this issue Jan 30, 2024
@chez14 chez14 linked a pull request Jan 30, 2024 that will close this issue
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 a pull request may close this issue.

1 participant