GithubHelp home page GithubHelp logo

ayon95 / redux-basics Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 195 KB

This repo contains code that shows the basic usage of Redux, Redux Thunk, Redux Toolkit, and RTK Query in a React application written with TypeScript.

HTML 5.66% TypeScript 85.62% CSS 8.72%
react redux redux-thunk redux-toolkit rtk-query typescript

redux-basics's Introduction

Redux Basics

Demonstration of using Redux, Redux Thunks, Redux Toolkit, and RTK Query in a React application. This project contains two separate demonstrations for regular Redux and Redux Toolkit + RTK Query.

Get started

Open up a terminal and clone this repo:

# Clone this repository
$ git clone https://github.com/Ayon95/redux-basics.git

# Go into the repository
$ cd redux-basics

# Remove current origin repository
$ git remote remove origin

# If you want, you can add a new remote repository
$ git remote add origin https://github.com/<your-github-username>/<your-repo-name>.git

Regular Redux

Install project dependencies using npm:

# go into redux-regular folder
$ cd redux-regular

# install the necessary packages
$ npm install

# start the local development server
$ npm start

Redux Toolkit

Install project dependencies using npm:

# go into redux-toolkit folder
$ cd redux-toolkit

# install the necessary packages
$ npm install

# start the local development server
$ npm run server

Note: 'server' is an npm script that starts a local JSON server at port 8000. Check out package.json to see the script.

redux-basics's People

Contributors

ayon95 avatar

Stargazers

 avatar  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.