I’m happy to introduce “Building with RescriptRelay”, an ongoing video series where we build a RescriptRelay web app using data from the GitHub GraphQL API.
RescriptRelay is a framework for using ReScript together with Relay, Meta’s GraphQL client. We’ll also be using RescriptRelayRouter, a web router built specifically for RescriptRelay.
The first 2 episodes are out, and they cover topics like:
Project setup
Lazy vs preloaded queries
Route level codesplitting + loading code and data in parallel (render-as-you-fetch)
Create a new route with codesplitting and data preloading (render-as-you-fetch)
Reuse the components we’ve already built, using fragments
Create type safe links to our new route
Build out a now shared fragment component in isolation. Fragments and co-location means we can do that just by editing the component alone. No need to wire up any data or care where and in what routes that component is actually used, Relay takes care of that for us.
Shows how easy it is to evolve fragment components with no worry of breaking the rest of the app.