react-ui-abstraction
v0.2.0
Published
A framework built on top of best react libraries
Downloads
12
Readme
UI Abstraction
This is a library to help you to build configurable React App.
It provides a set of base components and patterns.
Paradigm
A user interact with a view using mouse and/or keyboard which send events from a content and that interaction dispatch an action. That action may change the current view or the content displayed.
Definitions
We have the following objects to build a user interface:
- views
- actions
- content types
Let's talk about each of them.
Views
Views are special React component. They are high level component which has the following responsability: They must dispatch props to configurable components.
They are called by UI abstraction library from the router and connected to the store throw the settings.
So a view is can be a pure component.
Then view will be composed of react components that can get their props.
Actions
Actions are redux actions.
Content Types
Internals: The registry
You will find the the registry as the central piece of ui abstraction. It's just a key/object registry and it's used with prefix to store the following:
- action creators (function)
- views (React Component)