Git Product home page Git Product logo

emotion's Introduction

begin-redux

๋ฆฌ๋•์Šค ์‹œ์ž‘ํ•˜๊ธฐ ํŠœํ† ๋ฆฌ์–ผ ์ „์šฉ ํ…œํ”Œ๋ฆฟ

์ด ํ”„๋กœ์ ํŠธ๋Š” ์ด 6๊ฐ€์ง€์˜ Branch ๋กœ ๋‚˜๋‰˜์–ด์ ธ์žˆ์Šต๋‹ˆ๋‹ค:

  • template: ์‹ค์Šต์„ ๋น ๋ฅด๊ฒŒ ์ง„ํ–‰ํ•˜๊ธฐ ์œ„ํ•œ ํ…œํ”Œ๋ฆฟ
  • 01: ์นด์šดํ„ฐ (๊ธฐ๋ณธ)
  • 02: ์นด์šดํ„ฐ (์ฝ”๋“œ ์ •๋ฆฌ)
  • 03: ํˆฌ๋‘๋ฆฌ์ŠคํŠธ (๊ธฐ๋ณธ)
  • 04: ํˆฌ๋‘๋ฆฌ์ŠคํŠธ (Immutable Record ์‚ฌ์šฉ)
  • 05: actionCreator ๋ฏธ๋ฆฌ bindํ•˜๊ธฐ
  • 06: immer.js ์‚ฌ์šฉํ•ด๋ณด๊ธฐ
  • 07: MobX ๋กœ ๊ตฌํ˜„ํ•ด๋ณด๊ธฐ
  • 08: MobX ๋กœ ๊ตฌํ˜„ํ•ด๋ณด๊ธฐ (Store ๋ถ„๋ฆฌ)

ํ…œํ”Œ๋ฆฟ์— ์ด๋ฏธ ์ด๋ค„์ง„ ์ž‘์—…:

0. ์ ˆ๋Œ€๊ฒฝ๋กœ์—์„œ ํŒŒ์ผ์„ ๋ถˆ๋Ÿฌ ์˜ฌ ์ˆ˜ ์žˆ๋„๋ก ์„ค์ •

  • .env: NODE_PATH ์„ค์ •
  • jsconfig.json: ์—๋””ํ„ฐ ์„ค์ •

1. ํŒจํ‚ค์ง€ ์„ค์น˜

$ yarn add redux react-redux redux-actions immutable

2. ๋ถˆํ•„์š”ํ•œ ํŒŒ์ผ ์ œ๊ฑฐ

  • App.js
  • App.css
  • App.test.js
  • logo.svg

3. ์ฃผ์š” ์ปดํฌ๋„ŒํŠธ ์ƒ์„ฑ ๋ฐ ๋ฃจํŠธ ์ปดํฌ๋„ŒํŠธ ์ƒ์„ฑ

  • components/
    • App.js
    • AppTemplate.js
    • Counter.js
    • Todos.js
  • containers/
    • CounterContainer.js
    • TodosContainer.js
  • Root.js

4. ๋ฆฌ๋•์Šค ๊ด€๋ จ ์ฝ”๋“œ๋ฅผ ์ž‘์„ฑ ํ•  ํŒŒ์ผ ์ƒ์„ฑ

  • store
    • modules
      • counter.js
      • todo.js
      • index.js
    • configure.js
    • index.js
    • actionCreators.js

emotion's People

Contributors

aaronjensen avatar ahutchings avatar ailrun avatar ajs139 avatar alex-pex avatar alireza-mh avatar andarist avatar arcanis avatar asvetliakov avatar azizhk avatar bigslycat avatar bogas04 avatar cameron-martin avatar christopherbiscardi avatar emmatown avatar eps1lon avatar fezvrasta avatar github-actions[bot] avatar greggb avatar karol-majewski avatar lukeed avatar mgroenhoff avatar nitin42 avatar peterpme avatar quantizor avatar silvenon avatar simeonc avatar tkh44 avatar utopiaio avatar zslabs avatar

Watchers

 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.