프로필사진
  • About
  • 태그
  • 방명록
  • RSS
  • JooStory.net
  • JooHana.net

개인적인 관심사에 관해서 이런저런 이야기를 하고 있습니다. #집밥 #개발자 #Ubuntu

검색하기 폼
  • 분류 전체보기 (594)
    • Dev (73)
    • 잡담 (99)
    • 집밥 (21)
    • 리뷰 (40)
  • 방명록

react-redux (1)
React Redux functional component 적용

React Hooks는 functional component를 사용할 수밖에 없다. 애초에 그러려고 만든 거니까. 그동안 redux와 react를 connect하기 위해서 hoc를 사용했는데 decorator를 사용했었다. import React, { Component } from 'react'; import { connect } from 'react-redux'; @connect(state => ({ name: state.name })) class MyComponent extends Component { render() { const { name } = this.props; return ( {name} ); } } export default MyComponent; 이 decorator는 class에만 ..

Dev 2019. 4. 18. 14:53 댓글 0
이전 1 다음
이전 다음
최근에 올라온 글
  • textarea maxLength 버그
  • flutter를 다시 시작해볼까
  • 카걸
  • 에버랜드 연간회원권
  • 아이작 아시모프 작품 감⋯
TAG
  • electron
  • Mac
  • Daum
  • 넷플릭스
  • ubuntu
  • Linux
  • 요리
  • 레시피
  • 티스토리
  • 글꼴
more
«   2021/03   »
일 월 화 수 목 금 토
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      

Blog is powered by Tistory / Designed by Tistory

티스토리툴바