Flow: Identifier 'React' cound not resolve name (v0.53)

Created on 17 Aug 2017  路  3Comments  路  Source: facebook/flow

I am using an ui framework uses JSX syntax but not React/JSX, flow 0.53 will report 'Identifier React count not resolve name' error on JSX statements.

Is there a config item to disable React/JSX related checking?

Most helpful comment

Is it possible to make @jsx <whatever> globally as an option in .flowconfig?

All 3 comments

What function does your jsx call? If it's Foo then you can add @jsx Foo to your header comment.

Thank you. Worked now by add @jsx tag.

Is it possible to make @jsx <whatever> globally as an option in .flowconfig?

Was this page helpful?
0 / 5 - 0 ratings