Skip to content

Show HN: React-logic – DI and signals – write react without hooks

roypeled.github.io
1 pointhalflifediscuss
On HN

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!

Comments

No comments yet.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.