react-backend
Advanced tools
+1
-1
| { | ||
| "name": "react-backend", | ||
| "version": "1.0.4", | ||
| "version": "1.0.5", | ||
| "description": "A framework which help fetch data from backends and provide them to React.js components.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
+7
-7
@@ -7,3 +7,3 @@ # react-backend | ||
| React.js doesnt' provide any core feature to interface with a database back-end | ||
| React.js doesn't provide any core feature to interface with a database back-end | ||
| nor with a REST API. We wanted a simple (and beautiful) solution, and didnt' want to learn a new language such as [GraphQL/Relay](https://facebook.github.io/relay/). | ||
@@ -208,7 +208,7 @@ [Redux](https://redux.js.org/) provides the frame to manage UI state, and respond to user actions, but doesn't help on the server side, where initial state is immutable. | ||
| How to declare your data needs: [DataNeeds.jsx](https://github.com/Hextrakt/react-backend/blob/master/src/samples/common/DataNeeds.jsx) | ||
| Write your server data provider: [ServerDataProvider.js](https://github.com/Hextrakt/react-backend/blob/master/src/samples/server/ServerDataProvider.js) | ||
| Write your client data provider: [ClientDataProvider.js](https://github.com/Hextrakt/react-backend/blob/master/src/samples/client/ClientDataProvider.js) | ||
| Write your react application: [App.jsx](https://github.com/Hextrakt/react-backend/blob/master/src/samples/common/App.jsx) | ||
| Write your client bundle: [Client.jsx](https://github.com/Hextrakt/react-backend/blob/master/src/samples/client/Client.jsx) | ||
| Write your server handler: [Server.jsx](https://github.com/Hextrakt/react-backend/blob/master/src/samples/server/Server.jsx) | ||
| * How to declare your data needs: [DataNeeds.jsx](https://github.com/Hextrakt/react-backend/blob/master/src/samples/common/DataNeeds.jsx) | ||
| * Write your server data provider: [ServerDataProvider.js](https://github.com/Hextrakt/react-backend/blob/master/src/samples/server/ServerDataProvider.js) | ||
| * Write your client data provider: [ClientDataProvider.js](https://github.com/Hextrakt/react-backend/blob/master/src/samples/client/ClientDataProvider.js) | ||
| * Write your react application: [App.jsx](https://github.com/Hextrakt/react-backend/blob/master/src/samples/common/App.jsx) | ||
| * Write your client bundle: [Client.jsx](https://github.com/Hextrakt/react-backend/blob/master/src/samples/client/Client.jsx) | ||
| * Write your server handler: [Server.jsx](https://github.com/Hextrakt/react-backend/blob/master/src/samples/server/Server.jsx) |
| { | ||
| "name": "react-backend-samples", | ||
| "version": "1.0.4", | ||
| "version": "1.0.5", | ||
| "description": "Samples for react-backend", | ||
@@ -20,3 +20,3 @@ "main": "index.js", | ||
| "react": "^16.2.0", | ||
| "react-backend": "^1.0.3", | ||
| "react-backend": "^1.0.5", | ||
| "react-dom": "^16.2.0", | ||
@@ -23,0 +23,0 @@ "react-helmet": "^5.2.0", |
+1
-2
@@ -36,4 +36,3 @@ import React, { Fragment, Component } from 'react' | ||
| /** | ||
| * When there is 'reload' in the query string, | ||
| * this component will wait until all the data from the backend are ready (or in error) | ||
| * This component will wait until all the data from the backend are ready (or in error) | ||
| * and then will update the component tree. | ||
@@ -40,0 +39,0 @@ * @returns {Boolean} |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
343164
-0.01%1746
-0.06%