<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/how-to-build-a-react-crud-app-without-building-a-backend-rqikj5dfa" -->

---
title: How to Build a React CRUD App Without Building a Backend
description: A tutorial demonstrates building a React CRUD dashboard without setting up a real backend, using a stateful mock API called Playground API by Niles Labs. It...
canonical: https://daily.dev/posts/how-to-build-a-react-crud-app-without-building-a-backend-rqikj5dfa
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: How to Build a React CRUD App Without Building a Backend | daily.dev
og:description: A tutorial demonstrates building a React CRUD dashboard without setting up a real backend, using a stateful mock API called Playground API by Niles Labs. It...
og:url: https://daily.dev/posts/how-to-build-a-react-crud-app-without-building-a-backend-rqikj5dfa
og:image: https://api.daily.dev/og/posts/rQIKj5DFA.png
og:image:alt: How to Build a React CRUD App Without Building a Backend
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 Build a React CRUD App Without Building a Backend

**[Medium](https://daily.dev/sources/medium_js)** · 7 min read · 3 upvotes · 0 comments

## Summary

A tutorial demonstrates building a React CRUD dashboard without setting up a real backend, using a stateful mock API called Playground API by Niles Labs. It explains the HTTP contract a CRUD frontend needs (GET/POST/PUT/DELETE endpoints), why traditional static mocks like JSONPlaceholder fail because they don't persist mutations, and walks through a full React implementation with an api.js service module and a PostDashboard component handling listing, creation, deletion, loading states, and pagination. It closes with best practices like decoupling API calls, simulating network delay, and testing error states, plus limitations of sandbox mocking such as temporary persistence and lack of custom business logic.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://medium.com/@nileslabs/how-to-build-a-react-crud-app-without-building-a-backend-cad3561d19ae>

## Questions this post answers

### Why does JSONPlaceholder return 404 when I try to GET a post I just created with a POST request?

Static mock APIs like JSONPlaceholder do not persist mutations across requests. A POST request returns a fake created object with a generated id, but that data is never actually stored, so a subsequent GET request for that same id returns a 404 Not Found error. This makes testing pagination, optimistic UI updates, or cache invalidation unreliable without manual client-side state mocking.

_daily.dev surfaces practical workarounds like this for developers debugging flaky frontend test setups._

### How can I test React loading skeletons and error states without a real backend?

Use a stateful mock API that supports simulated network delay and error responses instead of hardcoded local arrays. Passing a query parameter like ?_delay=1000 simulates realistic network latency so loading states can be verified, while checking that the UI gracefully handles HTTP 400, 404, and 500 status codes ensures error handling works before a production backend exists.

_Developers polishing UI resilience often track these frontend testing techniques on daily.dev._

## Similar posts on daily.dev

- [ReactJs CRUD with typescript and json-server](https://daily.dev/posts/reactjs-crud-with-typescript-and-json-server-ryrogo8cw) · Medium · 2 upvotes · 0 comments
- [Testing Node.js APIs with Jest: A Frontend Developer's Guide to Backend Testing](https://daily.dev/posts/testing-node-js-apis-with-jest-a-frontend-developer-s-guide-to-backend-testing-ykfrkag4k) · SitePoint · 0 upvotes · 0 comments
- [How to Build a Full-Stack CRUD App with React, AWS Lambda, DynamoDB, and Cognito Auth](https://daily.dev/posts/how-to-build-a-full-stack-crud-app-with-react-aws-lambda-dynamodb-and-cognito-auth-hnwtr8xqh) · freeCodeCamp · 4 upvotes · 0 comments
- [Building a Modern Digital Product Dashboard UI with React.js](https://daily.dev/posts/building-a-modern-digital-product-dashboard-ui-with-react-js-1z9nzj55n) · Medium · 3 upvotes · 0 comments

---

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

[View this post on daily.dev](https://daily.dev/posts/how-to-build-a-react-crud-app-without-building-a-backend-rqikj5dfa)

```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 Build a React CRUD App Without Building a Backend","url":"https://daily.dev/posts/how-to-build-a-react-crud-app-without-building-a-backend-rqikj5dfa","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/how-to-build-a-react-crud-app-without-building-a-backend-rqikj5dfa"},"datePublished":"2026-09-15T20:22:25.690Z","dateModified":"2026-09-15T20:59:57.359Z","description":"A tutorial demonstrates building a React CRUD dashboard without setting up a real backend, using a stateful mock API called Playground API by Niles Labs. It...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/e49e853989c433a3c819ffb94df48185?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/e49e853989c433a3c819ffb94df48185?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Medium","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":"Organization","name":"Medium","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/medium","url":"https://daily.dev/sources/medium_js"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/how-to-build-a-react-crud-app-without-building-a-backend-rqikj5dfa","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":3},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"webdev,react","timeRequired":"PT7M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Medium","item":"https://daily.dev/sources/medium_js"},{"@type":"ListItem","position":3,"name":"How to Build a React CRUD App Without Building a Backend"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/how-to-build-a-react-crud-app-without-building-a-backend-rqikj5dfa#faq","mainEntity":[{"@type":"Question","name":"Why does JSONPlaceholder return 404 when I try to GET a post I just created with a POST request?","acceptedAnswer":{"@type":"Answer","text":"Static mock APIs like JSONPlaceholder do not persist mutations across requests. A POST request returns a fake created object with a generated id, but that data is never actually stored, so a subsequent GET request for that same id returns a 404 Not Found error. This makes testing pagination, optimistic UI updates, or cache invalidation unreliable without manual client-side state mocking. daily.dev surfaces practical workarounds like this for developers debugging flaky frontend test setups."}},{"@type":"Question","name":"How can I test React loading skeletons and error states without a real backend?","acceptedAnswer":{"@type":"Answer","text":"Use a stateful mock API that supports simulated network delay and error responses instead of hardcoded local arrays. Passing a query parameter like ?_delay=1000 simulates realistic network latency so loading states can be verified, while checking that the UI gracefully handles HTTP 400, 404, and 500 status codes ensures error handling works before a production backend exists. Developers polishing UI resilience often track these frontend testing techniques on daily.dev."}}]}
```

