<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/how-to-create-an-inventory-list-with-react-usereducer-axios-and-json-server-rrobgfs0p" -->

---
title: How to Create an Inventory List with React useReducer,...
description: Learn how to create an inventory list with React using the useReducer hook, Axios for data fetching, and JSON Server as a mock API server.
canonical: https://daily.dev/posts/how-to-create-an-inventory-list-with-react-usereducer-axios-and-json-server-rrobgfs0p
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: How to Create an Inventory List with React useReducer, Axios, and JSON Server | daily.dev
og:description: Learn how to create an inventory list with React using the useReducer hook, Axios for data fetching, and JSON Server as a mock API server.
og:url: https://daily.dev/posts/how-to-create-an-inventory-list-with-react-usereducer-axios-and-json-server-rrobgfs0p
og:image: https://api.daily.dev/og/posts/rroBGFs0p.png
og:image:alt: How to Create an Inventory List with React useReducer, Axios, and JSON Server
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# How to Create an Inventory List with React useReducer, Axios, and JSON Server

**[freeCodeCamp](https://daily.dev/sources/freecodecamp)** · [@atapas](https://daily.dev/atapas) · 14 min read · 42 upvotes · 1 comments

## Summary

Learn how to create an inventory list with React using the useReducer hook, Axios for data fetching, and JSON Server as a mock API server.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.freecodecamp.org/news/create-an-inventory-list-with-react-usereducer-axios-and-json-server/>

## Community discussion

Top comments from developers on daily.dev.

**@atapas** · 0 upvotes

> I hope you find it helpful.

---

Tags: [#javascript](https://daily.dev/tags/javascript), [#react](https://daily.dev/tags/react), [#axios](https://daily.dev/tags/axios)

[View this post on daily.dev](https://daily.dev/posts/how-to-create-an-inventory-list-with-react-usereducer-axios-and-json-server-rrobgfs0p)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"How to Create an Inventory List with React useReducer, Axios, and JSON Server","url":"https://daily.dev/posts/how-to-create-an-inventory-list-with-react-usereducer-axios-and-json-server-rrobgfs0p","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/how-to-create-an-inventory-list-with-react-usereducer-axios-and-json-server-rrobgfs0p"},"datePublished":"2024-03-07T19:09:30.591Z","dateModified":"2024-05-09T08:39:06.345Z","description":"Learn how to create an inventory list with React using the useReducer hook, Axios for data fetching, and JSON Server as a mock API server.","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/5fd37d8d327496b941850069e268d8b5?_a=AQAEufR","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/5fd37d8d327496b941850069e268d8b5?_a=AQAEufR","isAccessibleForFree":true,"articleSection":"freeCodeCamp","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Person","name":"Tapas Adhikary","url":"https://daily.dev/atapas","image":"https://lh3.googleusercontent.com/a-/AOh14GhN71PeWrtSoinbdnOhZS9usr2nbP111YlpswhWaBg=s100","description":"Teacher | YouTuber | Founder ReactPlay & tapaScript | Co-Founder CreoWis | Open Source","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":10210}},"commentCount":1,"discussionUrl":"https://daily.dev/posts/how-to-create-an-inventory-list-with-react-usereducer-axios-and-json-server-rrobgfs0p","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":42},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":1}],"keywords":"javascript,react,axios","timeRequired":"PT14M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"freeCodeCamp","item":"https://daily.dev/sources/freecodecamp"},{"@type":"ListItem","position":3,"name":"How to Create an Inventory List with React useReducer, Axios, and JSON Server"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/how-to-create-an-inventory-list-with-react-usereducer-axios-and-json-server-rrobgfs0p","comment":[{"@type":"Comment","text":"I hope you find it helpful.","datePublished":"2024-03-08T03:16:46.670Z","url":"https://daily.dev/posts/rroBGFs0p#c-bO3erAjVQ","author":{"@type":"Person","name":"Tapas Adhikary","url":"https://daily.dev/atapas","image":"https://lh3.googleusercontent.com/a-/AOh14GhN71PeWrtSoinbdnOhZS9usr2nbP111YlpswhWaBg=s100"}}]}
```

