Setting state in the Query component of react-apollo

Posted by Pinki | Updated on

Setting state in the Query component of react-apollo. Whatever component needs this data as state should be rendered inside the Query component, and then have the data passed down to it as a prop.

Here is an example:


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