Duc Dang’s Post

🚀 𝗜𝗻𝘁𝗿𝗼𝗱𝘂𝗰𝗶𝗻𝗴 𝗥𝗲𝗰𝘁𝗶𝗳𝘆 — 𝗮 𝗹𝗶𝗴𝗵𝘁𝘄𝗲𝗶𝗴𝗵𝘁 𝗥𝗲𝗮𝗰𝘁-𝗹𝗶𝗸𝗲 𝗨𝗜 𝗹𝗶𝗯𝗿𝗮𝗿𝘆 𝗯𝘂𝗶𝗹𝘁 𝗳𝗿𝗼𝗺 𝘀𝗰𝗿𝗮𝘁𝗰𝗵 After diving deep into how modern UI frameworks work under the hood, I set out to build one myself. The result is Rectify — a lightweight, React-inspired library with zero React dependencies. 🧠 𝗪𝗵𝗮𝘁’𝘀 𝗶𝗻𝘀𝗶𝗱𝗲  • ⚙️ Fiber reconciler & concurrent rendering — implemented from the ground up  • 🎣 Complete Hooks API — useState, useEffect, useRef, useMemo, useCallback, useContext, useReducer, useId, and more  • 🧩 Class components with full lifecycle support  • 🚀 Advanced features — memo(), lazy(), and <Suspense>  • 🌐 Context API  • 🧭 Built-in router — BrowserRouter, HashRouter, nested routing support  • 🛠️ Tooling integration — Vite plugin + Babel transform  • ⚡ CLI scaffold — spin up a project in seconds All of this comes in at ~𝟭𝟬 𝗞𝗕 𝗴𝘇𝗶𝗽𝗽𝗲𝗱. 🎯 𝗪𝗵𝘆 𝗥𝗲𝗰𝘁𝗶𝗳𝘆? Rectify isn’t trying to replace React Instead, it’s a deep exploration into the mechanics behind modern UI frameworks:  • How does a fiber reconciler actually work?  • How do hooks persist state across renders?  • What does concurrent rendering really mean in practice? If you’ve ever been curious about these internals, the source code is fully open and designed to be read. ⚡ 𝗚𝗲𝘁 𝘀𝘁𝗮𝗿𝘁𝗲𝗱 pnpm create @rectify-dev/rectify-app my-app 📦 Explore  • npm: @rectify-dev/core  • npm: @rectify-dev/router  • Docs: https://lnkd.in/g9j5qDYV Would love to hear your feedback if you give it a try 🙌 #OpenSource #JavaScript #TypeScript #WebDevelopment #Frontend #React #UIFramework

  • graphical user interface, text, application, email

To view or add a comment, sign in

Explore content categories