Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backend Chapter #76

Open
bebraw opened this issue Jul 1, 2015 · 1 comment
Open

Backend Chapter #76

bebraw opened this issue Jul 1, 2015 · 1 comment

Comments

@bebraw
Copy link
Member

bebraw commented Jul 1, 2015

Discuss how to integrate with backends. Ie. REST, Firebase. Example based on goatslacker/alt#158 and goatslacker/alt#173 below (not sure if correct):

const alt = new Alt({ stateKey: 'state' })

class Foo {
  static displayName: 'FooStore'

  constructor() {
    // private, use this to talk with firebase
    this.firebase = new Firebase();

    // state shared with components and modified by firebase instance
    this.state = {
      state1: 1,
      state2: 2
    }
  }
}
@HighOnDrive
Copy link

This will be a great chapter. Should hear more news about Relay over the next days from React-Europe. Would love to learn all about Firebase with and without Relay integration and also with and without Alt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants