Skip to content

Relay-inspired library based on Promises instead of GraphQL.

License

Notifications You must be signed in to change notification settings

mhd-sln/react-transmit

 
 

Repository files navigation

View live demo

React Transmit

Relay-inspired library based on Promises instead of GraphQL.

Inspired by: Building the Facebook Newsfeed with Relay (React blog)

Installation

npm install react-transmit

Usage

import React from "react";
import Transmit from "react-transmit";

const Newsfeed = React.createClass(...);

export default Transmit.createContainer(Newsfeed, {
	queryParams: {
		count: 10
	},
	queries: {
		stories (queryParams, prevProps) {
			// All Transmit queries return a Promise.
			return Promise.all([
				Story.getQuery("story")
			]);
		}
	}
});

Community

Let's start one together! After you ★Star this project, follow @Rygu on Twitter.

License

BSD 3-Clause license. Copyright © 2015, Rick Wong. All rights reserved.

About

Relay-inspired library based on Promises instead of GraphQL.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 97.1%
  • HTML 2.9%