0.1.3 • Published 8 years ago

react-fluxible-intraspector v0.1.3

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

React Fluxible Intraspector

npm version

This project is currently in development. Not recommended for use in production. APIs will change.

Component API

Intraspector

AttributeRequired?DefaultDescription
contextYesNoneFluxible Application Context
traceKeyYesNoneIntraspector Trace Key

Example Usage

1) Register Store in Fluxible Application

import { IntraspectorStore } from 'react-fluxible-intraspector';
app.registerStore(IntraspectorStore);

2) Dispatch Intraspector Events

payload = {key: 'exampleKey', trace: intraspectorTrace};
actionContext.dispatch('intraspectorTrace.received', payload);

3) Intraspector Component

import { Intraspector } from 'react-fluxible-intraspector';

Component = React.createClass({
render() {
  return (
    <Intraspector context={this.props.appContext} traceKey={'exampleKey'} />
  )
});

4) Toggle debug mode in console to display Intraspector Component

toggleIntraspector()

Development Guide

git clone https://github.com/BespokeInsights/react-fluxible-intraspector.git
cd react-fluxible-intraspector
npm install

Make changes to files in the src/ folder. To build for release run npm run compile

Related Modules

Python Intraspector

Thanks

Proudly developed by Bespoke Insights