react-rest-state
react-rest-state
easy state managment with high performance
install
npm i react-rest-state --save
use
;...;...console
setState
;
or
;
callback
;
connect
; Component disconnect = ; { return <View> <Text>statename</Text> <Button title="change" onPress= { ; } /> </View> ; } { this; }
callback
;
connect function to states run function when states did update
;
forceUpdate
;
useConnect for Hooks
; { //if first argumant is a function and runinng when state did update else component will be update ; return <Text>statename</Text>;}