4VTQFOTF� "1*�XJMM�CF�DIBOHFE import SimpleCacheProvider from ‘simple-cache-provider’; const cache = SimpleCacheProvider.createCache(); const userFetcher = id => SimpleCacheProvider.createResource(id => fetch(`/api/users/${id}`).then(res => res.json()); )(cache, id); const User = props => { const user = userFetcher.read(props.id); return <div>{user.name}</div>; }; const Placeholder = props => ( <R
![React Suspense](https://cdn-ak-scissors.b.st-hatena.com/image/square/ac28aaaf60d38113234e95d804a1ec4ce413081d/height=288;version=1;width=512/https%3A%2F%2Ffiles.speakerdeck.com%2Fpresentations%2Fe6fe0b3335384d3fbea607b8ad03a695%2Fslide_0.jpg%3F10251088)