Settings

Theme

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

roypeled.github.io

1 points by halflife 2 months ago · 0 comments · 1 min read

Reader

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!

No comments yet.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection