GithubHelp home page GithubHelp logo

trendingtechnology / react_crud_localstorage Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cristianszwarc/react_crud_localstorage

0.0 0.0 0.0 320 KB

React/Redux basic CRUD with persistent state, demo->

Home Page: http://cristianszwarc.github.io/react_crud_localStorage/

License: MIT License

JavaScript 97.09% HTML 2.81% CSS 0.10%

react_crud_localstorage's Introduction

React/Redux basic CRUD example

This little app was made to test a basic CRUD for a webpapp. This was done thinking on a mobile or chrome application so this is not using routes.

A separation between the state and the application data is in place to test a more realistic situation where you do async calls to a remote API, something missing on many redux/react examples.

This is being developed while I'm learning about react/redux so the code shared here may contain newbie errors and is not following any particular standard, but it contains a bunch of comments that may help some one that is struggling to understand how react/redux works.

Demo

Local Storage This uses local storage for two tasks:

  • store the state (redux-localstorage) this allows the webapp to be reloaded without losing the current state. (so it can be a hosted webapp that when added to IOS home screen does not lose the state each time the user goes away and comes back stackoverflow)
  • store the CRUD data (store.js) when actions are dispatched, async calls are executed against a local api that takes care of the data, a delay time is in place so the "fetching" state can be shown.

Web app Can be added to IOS/Andriod home screen and each time is loaded the state remains the same (because the persistent state plugin).

No routes Routes are amazing and are a requirement in many cases but this is a trial to check an alternative way when there is no need to provide bookmarks to sections or server rendering.

To do Learn more and improve this example.

Use

npm install
npm start

Open http://localhost:8080/

Screens

List

Form

Fetch simulation

License MIT

react_crud_localstorage's People

Contributors

cristianszwarc 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.