bitovi / bitovi/react-to-web-component

React Strict Mode Support

Open
#169 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
944
Forks
52
PR merge metrics
No merged PRs in 30d

Description

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](https://github.com/bitovi/react-to-web-component/assets/5555026/61ea9499-0232-44f4-a3f5-b8f9bdec4da4)

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.