1.0.8 • Published 6 years ago

react-izzi v1.0.8

Weekly downloads
1
License
ISC
Repository
-
Last release
6 years ago

react-izzi

npm i --save react-izzi

react-izzi split our react-component in 2 parts (controller & view) to utilize this parts in diferents components.

  1. controller- contain a component lifecycle and our logic.
  2. view- contain a component jsx

How to use

import {compose} from 'react-izzi';

const controller = {
    didMount:()=>{
	   console.log('Component did mount')
    }
}

const view = () => <div>Hello this is my component</div>


const MyComponent = compose(controller)(view);

export default MyComponent;

How to reutilize and combine components parts:

view an example

Learn this light API in 5 min:

Use with Redux Use with PropTypes

(controller) api: displayName state construct() didMount() willMount() willReceiveProps() willUnmount() didCatch()

learn more ...

(view) api: ceck examples how to use corect views ...

Users:

1.Wallki

if you use this lib open the PR and ad your company name and url in alphabetical order (please)

Contributors:

1.Gherciu Gheorghe

How to contribute to this lib...

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago