Giter VIP home page Giter VIP logo

cra-template-dongkyuuuu's Introduction

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

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.