Brandibble Redux
A set of actions, reducers, and redux middleware for Brandibble.
Configuration
Middleware
;; const store = ;
Actions
; ...;...
Reducers
;; ... brandibble: brandibbleReducer ...;
Example
;;;;; // or 'react-native' const brandibble = // ...config; const mapStateToProps = { const setupBrandibbleRedux = statebrandibblestatus; return loaded: setupBrandibbleRedux === 'FULFILLED' ;}; const mapDispatchToProps = { }; @ { ; } { const loaded = thisprops; return loaded ? <LoadingState /> : <App />; }
Working on Brandibble Redux
IMPORTANT: Set an environment variable called BRANDIBBLE_API_KEY
with your Brandibble API key before running tests.
git clone https://github.com/sanctuarycomputer/brandibble-redux
cd brandibble-redux
npm install
// Run tests (in chrome) with:
npm test