Coder Social home page Coder Social logo

madeinfree / relay Goto Github PK

View Code? Open in Web Editor NEW

This project forked from chentsulin/relay

0.0 3.0 0.0 11.49 MB

Relay 是一個 JavaScript 框架,用來建置資料驅動的 React 應用程式。

Home Page: https://chentsulin.github.io/relay/docs/getting-started.html

License: Other

JavaScript 97.68% Shell 0.29% CSS 2.00% HTML 0.03%

relay's Introduction

Relay Build Status npm version

Relay 是一個 JavaScript 框架,用來建置資料驅動的 React 應用程式。

  • **Declarative:**不再使用 imperative API 來與你的資料 store 溝通。簡單地使用 GraphQL 宣告你的資料需求並讓 Relay 判斷要如何、何時去抓取你的資料。
  • **Colocation:**Queries 就在依賴它們的 views 的旁邊,因此你可以更容易的思考你的應用程式。Relay 把 queries 聚合成高效率的網路請求來只抓取你需要的東西。
  • **Mutations:**Relay 讓你使用 GraphQL mutation 在客戶端和伺服器上 mutate 資料,並提供自動化的資料一致性、樂觀更新和錯誤處理。

學習如何在你自己的專案中使用 Relay。 或是在 Learn Relay 查看社群驅動的教學。

範例

relay-examples repository 附帶一個 TodoMVC 的實作。請試著:

git clone https://github.com/relayjs/relay-examples.git
cd relay-examples/todo && npm install
npm start

接著,只要把你的瀏覽器指到 http://localhost:3000

貢獻

我們積極的歡迎 pull request,學習如何貢獻

使用者

我們有一個社群維護的清單,列出在產品環境中使用 Relay 的人和專案。

授權

Relay 是 BSD 授權。我們也提供一個額外的專利授權

relay's People

Contributors

ags- avatar chentsulin avatar cpojer avatar davidaurelio avatar denvned avatar devknoll avatar dschafer avatar enaqx avatar gabelevi avatar globegitter avatar jeffmo avatar josephsavona avatar kassens avatar leebyron avatar michaelchum avatar mjmahone avatar robrichard avatar sampepose avatar slava avatar sophiebits avatar steveluscher avatar taion avatar vjeux avatar voideanvalue avatar wincent avatar xuorig avatar yungsters avatar yuzhi avatar zertosh avatar zpao avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.