JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 15
  • Score
    100M100P100Q70845F
  • License MIT

🌞 A tiny React-like library built for learning React internals (Fiber, state, lifecycle).

Package Exports

  • sunny-react

Readme

🌞 SunnyReact

A tiny React-like library built from scratch for learning purposes.
Implements a simplified Fiber architecture, virtual DOM diffing, and custom SunnyRules (state + lifecycle).

⚠️ Not production ready. Made for fun and understanding React internals.


✨ Features

  • ⚡ Fiber engine: Splitter, Differentiator, FinalToucher
  • 🔥 State management with UIUpdaterState
  • 🌞 Lifecycle hooks:
    • runOnlyOnce
    • runOnEachRender
    • runOnStateChange
  • JSX support with custom pragma (drawPiece)

🚀 Install

npm install sunny-react