Back to browse
React-logic – DI and signals – write react without hooks

React-logic – DI and signals – write react without hooks

by halflife·May 18, 2026·1 point·0 comments

Post Description

Hey hackernews, this is a library I created to make react code more manageable, with less code.

When working with react I hated how components became hundreds of line of code with tons of intertwined hooks.

Heavily inspired by Angular’s mental model, I sought to bring 3 things into react -

- separate business logic from the rendering layer

- true reactive state using signals

- an easy but robust dependency injection system to share state, or replace implementations

Beyond that, I added some utils like async signal, forms management, and testing tools

I’d love to hear your opinion!

Similar Projects