preactjs/preact ? reverse-engineered prompt

Reverse engineered prompt

Build me a tiny, fast React like UI library that uses a virtual DOM and feels familiar to people who already know React.

I want to be able to write components with JSX, use function components and class components, and update the page with a render function that only changes what actually needs to change. Please include hooks support, basic context, and a compatibility layer so common React style code can run with minimal changes.

It should be small and optimized for modern browsers, with support for server side rendering and hydration, plus a simple devtools and hot reload friendly setup if that fits. Make the API feel clean and easy to use, with good test coverage and clear examples in the repo. If you need to check current docs or patterns online while building it, go ahead.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab