Connecting To React
Background
Where Refract Belongs
const Counter = ({ count, increment }) => (
<button onClick={increment}>Count: {count}</button>
)import { withEffects } from 'refract-rxjs'
// Note that the handler and aperture are explained later in the docs,
// these empty functions are just placeholders
const aperture = (component, initialProps) => {}
const handler = initialProps => effect => {}
//
const CounterWithEffects = withEffects(aperture, { handler })(Counter)Last updated