Wondering what’s next for npm?Check out our public roadmap! »

react-falcor

0.10.0 • Public • Published

react-falcor

React binding for Falcor.

Installation

npm install react-falcor --save

Usage

import { Model } from 'falcor'
import HttpDataSource from 'falcor-http-datasource'
 
import { Provider, falcorGet } from 'react-falcor'
import React from 'react'
import ReactDOM from 'react-dom'
 
const falcor = new Model({
  source: new HttpDataSource('/model.json'),
})
 
const App = falcorGet([
  ['greeting'],
])(({ greeting }) => <p>{greeting}</p>)
 
ReactDOM.render(
  <Provider falcor={falcor}>
    <App />
  </Provider>,
  document.getElementById('container'),
)

Similar Effort

  • falcor-react
  • atreyu has a similar design to this library. For some reason, the author did not publish it to npm.

Keywords

Install

npm i react-falcor

DownloadsWeekly Downloads

36

Version

0.10.0

License

MIT

Unpacked Size

54.8 kB

Total Files

36

Last publish

Collaborators

  • avatar