... if coming from Redux

If coming from Redux, we think you are going to be impressed with our Hello Wow! demo

This demo is to showcase Conan State, which are our reusable capsules of state.

Hello World

If you are familiar with the TODO example from Redux, you might find this article also interesting:

Below we explore in detail the benefits of using ConanJs over Redux.

State is easy to create

Create simple state and actions with one line...

You can use Conan.light

... Or if you want to, create your own actions.

You can use Conan.state if you want to create your own custom actions.

State is easy to update

No need to create a pair of action/reducers

All the logic needed to update the state is encapsulated inside the action.

No boilerplate needed to deal with async actions

Async actions are easy to implement, and you won't need additional libraries

No need to map dispatch to props

You can invoke the actions directly from the state

State can be scoped

In ConanJs state is represented with Conan State, which ultimately is a plain JS object, which means that, as with any other object, you decide how to scope.

You can have global scope like Redux...

Sometimes it makes sense to have global state

... or local state, if you need to

But many times, you might feel forced to add it to your global state, or you need to use other mechanisms (setState, hooks...), with ConanJs you can just make your state local.

State can be composed.

No need to map state to props

You can have you state distributed in many smaller states, and then combine it, if you need to

No need to use selectors

You can just filter the state, or map it

State can be orchestrated

Add reactions to your state

With ConanJs is simple to write logic as a reaction to an state change, we call this state orchestration, and it will help you building complex state interactions.

Easy to test End to End

1) Create state, 2) Perform any number of actions, sync or async, 3) Check the final value of the state. With ConanJs end to end testing is simple

Meaningful Logging out of the box

No need to add third party libraries to log out what the framework is doing behind the scenes

More Demos

This demos will provide you with real world scenarios to use ConanJs

TodosGithub issues viewer

And more...

If this was not enough, we have some more features included.

ConanFlowDependency InjectionASAPs

Last updated