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

halflife1 pts0 comments

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 implementationsBeyond that, I added some utils like async signal, forms management, and testing toolsI’d love to hear your opinion!

react code logic signals hooks state

Related Articles