Skip to content

My react using typescript boilerplate + styled-components + Presentational and Container Components

Notifications You must be signed in to change notification settings

Hyunse/react-typescript-boilerplate

Repository files navigation

React-Ts-Boilerplate

  • React
  • Typescript
  • Styled-Components
  • Axios

Install

  
    /* Install */
    yarn
    
    /* Run */
    yarn start
  

Presentational and Container Components

It has split a component into two parts.

  • Container
  • Presenter

Container

Container only can handle data. So, it works for business logic. It renders Presenter Components.

Presenter

Presenter only focus on a view part of components. It usally is used as SFC (stateless functional components).