Skip to content
Source
Sign inSign up
TanStack/showcase
A read-only demo of every feature
Every page of this repository is open, and nothing can change. Take a guided tour of what TanStack Source does.

docs: show renameTask in the README #7

OpenAlemTuzlakwants to merge 3 commits intofeat/rename-task fromdocs/rename-readmeopened

Showing 1 changed file with 2 additions and 1 deletion.

x
0 of 1 viewed, 1 left
2 additions and 1 deletionREADME.mdModified
View file
@@ -3,12 +3,13 @@
A small task list library, and the public demo repository of [TanStack Source](https://source.tanstack.com).
​
```ts
-import { addTask, completeTask, openTasks } from '@tanstack-showcase/tasks'
+import { addTask, completeTask, openTasks, renameTask } from '@tanstack-showcase/tasks'
​
let list = addTask([], 'Write the docs')
list = addTask(list, 'Fix the bug', 1)
list = completeTask(list, 1)
openTasks(list) // [{ id: 2, title: 'Fix the bug', done: false, priority: 1 }]
+list = renameTask(list, 2, 'Fix the login bug')
```
​
Open the tabs of this repository to see what Source does: issues with screening, pull requests in stacks and in the merge queue, typed CI, the software factory, skills and assets.