Skip to content
This repository has been archived by the owner on Feb 17, 2022. It is now read-only.

πŸ‘‹ cra-template-dongkyuuu is Create-React-App template. this template based on cra-template-redux-typescript(v.1.0.1).

Notifications You must be signed in to change notification settings

Dongkyuuuu/cra-template-dongkyuuuu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

cra-template-dongkyuuuu

npm version

cra-template-redux-typescript(v1.0.1) λ₯Ό 기반으둜 μž‘μ„±ν•˜μ˜€μŠ΅λ‹ˆλ‹€.

이 ν…œν”Œλ¦Ώμ€ react-app-rewired을 μ‚¬μš©ν•΄ μ‹€ν–‰, λΉŒλ“œ ν•©λ‹ˆλ‹€.


Create

Using npx:

npx create-react-app my-app --template dongkyuuuu

Using npm:

npm init react-app my-app --template dongkyuuuu

Using Yarn:

yarn create react-app my-app --template dongkyuuuu

Usage

Path alias:

//  @λŠ” src 폴더λ₯Ό μ˜λ―Έν•©λ‹ˆλ‹€.

import "@/Components/App";

Axios Interceptor:

// src/Helpers/AxiosInterceptor.ts

import axios from "axios"

axios.interceptors.request.use(
    function(config){
        // before request success
    }
    function(error){
        // before request error
    }
)

axios.interceptors.response.use(
  function (response) {
    // http status === 200, .then()
    return response;
  },
  function (error) {
    //   http status !== 200, .catch()
    return Promise.reject(error);
  }
);

Dependencies

Name Version
@reduxjs/toolkit ^1.5.0
react-redux ^7.2.2
redux-logger ^3.0.6
react-router-dom ^5.2.0
react-app-rewired ^2.1.8
react-app-rewire-alias ^1.0.1
react-app-rewire-hot-loader ^2.0.1
react-hot-loader ^4.13.0
styled-components ^5.2.1
normalize.css ^8.0.1
axios ^0.21.1
@types/react-redux ^7.1.16
@types/redux-logger ^3.0.8
@types/react-router-dom ^5.1.7
@types/styled-components ^5.1.7

About

πŸ‘‹ cra-template-dongkyuuu is Create-React-App template. this template based on cra-template-redux-typescript(v.1.0.1).

Resources

Stars

Watchers

Forks

Packages

No packages published