React: createRef missing in flow typings

Created on 1 Apr 2018  路  1Comment  路  Source: facebook/react

Do you want to request a feature or report a bug?

Bug

What is the current behavior?

when using React.createRef() flow complains that createRef is missing in react.

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

What is the expected behavior?

flow does not complain.

Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?

React 16.3.0

Most helpful comment

React Flow typings live in Flow repo rather than React.

https://github.com/facebook/flow/pull/5920

>All comments

React Flow typings live in Flow repo rather than React.

https://github.com/facebook/flow/pull/5920

Was this page helpful?
0 / 5 - 0 ratings