Giter Site home page Giter Site logo

heggy231 / fam-wisp Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 249 KB

family magic instant family connection

Home Page: https://hc-fam-wisp.herokuapp.com/

License: MIT License

HTML 26.62% CSS 5.70% JavaScript 67.68%
react redux redux-thunk fullstack-javascript express nodemon heroku

fam-wisp's Introduction

FamWisp

live website: https://hc-fam-wisp.herokuapp.com/

My code: https://github.com/heggy231/fam-wisp

  • express-session: for session ID cookie

  • Jung WooJin Jung JiOh

  • Im SooAh

// inside of user redux reducer
// updating single thing inside user object
const user = {
  name: 'john',
  age: 30,
  city: 'Fargo'
};

export default function usercityInfo (state = initialState, action) {
  if (action.type === 'GET_USERCITY') {
    return {
      ...user, // make copy of user obj
      city: action.payload.user.city // update city info
    }
  }
}

// ex 2 with array of hobbies
const user = {
  name: 'john',
  age: 30,
  city: 'Fargo',
  hobbies: ['hiking', 'biking', 'climbing'],
};

// => from component level, replace the hobbies array entirely


// ex 3) 
const user = {
  name: 'john',
  age: 30,
  city: 'Fargo',
  hobbies: [{name: 'ddd'}, {date: 'dsome date'}],
};

fam-wisp's People

Contributors

heggy231 avatar

Watchers

 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.