|
You are here |
alexsidorenko.com | ||
| | | | |
janikvonrotz.ch
|
|
| | | | | Apollo server and client support real-time subscriptions with web sockets. Compared to Meteor's out of the box real-time communication this is a lot more difficult to set up. With this short tutorial I'll give you an example of how you can get a simple reactive subscriptions into your Apollo/React app. The idea is that you use real-time communication for a specific case only, f.g. sending notifications. We will accomplish this in five steps. Install project requirements. Setup the server schema. Add server resolvers. Setup the client subscription. Modify a component to receive data from a subscription. | |
| | | | |
kentcdodds.com
|
|
| | | | | How to start optimizing your React app renders | |
| | | | |
ericlathrop.com
|
|
| | | | | I ran into a head-scratching problem with a pure React component where it was re-rendering when it shouldn't. The component wrapped up a 3rd party script which put a button on my site. The problem was that when the button was clicked, some of my state changed so I could show a loading spinner. That state change made my component re-render, which broke the 3rd party script by re-initializing it. | |
| | | | |
shortdiv.com
|
|
| | | |||