How to type an exported RelayContainer in React?

Posted by Ramesh Singh | Updated on

Want to type an exported RelayContainer in React? Use the Relay Compiler generates Flow types for the fragment and these are exported in generated files within a __generated__ subdirectory. relay-compiler --src ./src --schema ./schema.json

You would then import the flow types for the field props like so:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers