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

Missing React.StrictMode introduced in React 16.3 #6107

Closed
NoMan2000 opened this issue Apr 6, 2018 · 1 comment
Closed

Missing React.StrictMode introduced in React 16.3 #6107

NoMan2000 opened this issue Apr 6, 2018 · 1 comment

Comments

@NoMan2000
Copy link

NoMan2000 commented Apr 6, 2018

Strict mode introduction.

https://reactjs.org/docs/strict-mode.html

Here's the proof. This could be a React issue or a Flow issue, but since the error is occurring in Flow, I'm opening it here.

https://flow.org/try/#0PQKgBAAgZgNg9gdzCYAoVBLAtgBzgJwBcwAlAUwEMBjYqfOLMAcn0pqfSrgDsBnYgEYVeGKuWqEACvRxgAvGAAUOGbwCU8gHxLUASAA84mgDoAyoXyjCAWTgATMpt2owYfbzI0MPTS7C7nVwNgDy8fP1d9YCNCMwsrWwdfNSA

@georggrab
Copy link

georggrab commented Apr 7, 2018

There seems to already be a PR open for this: #6078
The Issue that is tracking adding the 16.3 Types can be found here: facebook/react#12553

For the time being, you can use $FlowFixMe as usual.

// $FlowFixMe: React Flow typings are not updated to React 16.3 yet
<React.StrictMode>
...
</React.StrictMode>

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

3 participants