0
Fork 0
mirror of https://github.com/TanStack/router.git synced 2026-11-16 19:38:07 +00:00
router/docs/start/framework/react
Shruti Kapoor ba8a1c836d
Adding Tutorial for Reading and Writing a File (#4089)
# Add DevJokes Tutorial: Reading and Writing Files
<img width="1318" alt="image"
src="https://github.com/user-attachments/assets/e6284dea-9596-42e5-b37a-c29ed56fa934"
/>

## Description
Adds a tutorial showing how to build a full-stack DevJokes app with
TanStack Start. Users learn to create server functions for reading and
writing to files, build React components, and implement data fetching
with TanStack Router.

## Key Features
- Server functions with `createServerFn`
- File-based data storage with Node.js `fs`
- Form handling and data validation
- Data refreshing with `router.invalidate()`
- Complete UI with Tailwind CSS

## Demo
https://youtu.be/zd0rtKbtlgU

## Reference
Complete code available at: https://github.com/shrutikapoor08/devjokes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
History 2025-05-05 08:23:49 -06:00
..
api-routes.md docs(start): fix key on changing the base path for API routes (#4062) 2025-04-30 18:35:26 +12:00
authentication.md Update partners 2025-04-04 13:29:24 -06:00
build-from-scratch.md docs(start): remove trailing commas from "build-from-scratch" (#4029) 2025-04-23 13:22:58 +12:00
databases.md Update partners 2025-04-04 13:29:24 -06:00
getting-started.md docs: Separate Start Docs 2025-01-29 21:47:58 -07:00
hosting.md docs(start): fix typos in the hosting guide (#4073) 2025-05-01 14:26:59 +12:00
learn-the-basics.md docs(start): complete the server functions - mutation example (#3992) 2025-04-17 20:13:24 +12:00
middleware.md docs: fix broken link (#4055) 2025-04-26 21:05:15 +02:00
observability.md docs: Separate Start Docs 2025-01-29 21:47:58 -07:00
overview.md Update overview.md 2025-04-23 15:20:59 -06:00
path-aliases.md fix(docs): update path-alias example from app to src (#3733) 2025-03-10 20:00:21 +01:00
quick-start.md chore(examples): add TanStack Start WorkOS example (#3966) 2025-04-10 20:41:57 +12:00
reading-writing-file.md Adding Tutorial for Reading and Writing a File (#4089) 2025-05-05 08:23:49 -06:00
server-functions.md docs: correct start server git link (#3991) 2025-04-14 19:55:22 +02:00
ssr.md docs: rename to @tanstack/react-start 2025-02-25 22:17:33 +01:00
static-prerendering.md docs(start): missing syntax snippet from static-prerendering guide (#3581) 2025-02-27 09:55:39 +13:00
static-server-functions.md docs: rename to @tanstack/react-start 2025-02-25 22:17:33 +01:00