I'm planning to finally create a blog to gather some ideas in a single place. What held me back before was laziness.
I'm planning to finally create a blog to gather some ideas in a single place. What held me back before was laziness.
a nice trick Iβm using for the client components is a map with component names with React.lazy
React requires the component as soon as it renders (if not preloaded). This way, it ensures client components aren't part of the initial bundle, and the server can add preload in SSR
Iβm prohibited from running server-side JS, and I literally build an RSC runtime + framework for Reason. Client components are compiled by Melange to JavaScript, while the rest runs on the server natively.
Itβs finally done, time to share it?
For anyone wanting to start on ppx, here is this repo I've made to help: github.com/pedrobslisbo....
ppx-by-example hasn't had all the ways to build ppxs as it's a WIP project, but it will help you in the beginning
bsky.app/profile/davi...
Hello Word
Whoever told you ppx's are bad, they have lied to you.
and if they suggest a replacement to be code-generation, it's probably because they don't understand ppx's and underestimate the pain of code-generation.
Stay away from those dogmatic views, and embrace learning tradeoffs.
It's great that you find ppx-by-example accessible β€οΈ
Btw, ppx-by-example is on a movement to be incorporated into ppxlib official documentation :3