Coder Social home page Coder Social logo

complimet_relay_last's Introduction

칭찬 릴레이사이트 입니다

Structure 예시

 structure = {
  post : [{
                id : 1,
                userName : "",
                desc : "",
                comment : [
                  {
                    commentId : 1,
                    userName : "",
                    content : "",
                  },
                  {
                    commentId : 2,
                    userName : "",
                    content : "",
                  },
                ]
              }]
  }

structure == {
  post : [{
    id = 1,
    user = "
  }],
  comment : [{
    postId = 1,
    commentId= 1,
    comment
  }]
}

Reducers

CREATE addSmile -- 스테이트 구조에 때문에 위의 형식처럼 객체를 추가 시키면 될것 같습니다. addComment -- 눌린 포스트의 ID 값을 찾아서 그 안에 해당하는 comment의 배열에 추가

READ useSelector로 잘받아서 보여주세용

UPDATE 차차생각

DELETE

Delete - ID찾아서 그 필터 쓰기 deletecomment -- "배열에 있는거 제거"

폴더 구조

Components

  • Comment.js
  • ComplimentCard.js
  • ComplimentList.js
  • Footer.js
  • Header.js
  • InputCompliment.js
  • Layout.js
  • Modal.js

Route

  • router.js

Pages

  • Intropage.js
  • Mainpage.js
  • Modalpage.js

Redux

  • Config
    • configStore.js
  • Modules
    • compliments.js

Intalled Package

  • yarn create creat-app --template redux -- 리덕스 툴킷도 자동생성됨.
  • yarn add styled-components
  • yarn add react-router-dom

complimet_relay_last's People

Contributors

bennoholik avatar minimi61 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.