Commit a7b754a
authored
Update part6d.md import @tanstack/react-query vs 'react-query'
Following example code in the text needs to be updated from:
import {XXX} from 'react-query'
to import {XXX} from '@tanstack/react-query'
Indeed the library to be installed at the beginning of the chapter is now npm install @tanstack/react-query, and so throwing an error when trying to import 'react-query'.
CF: documentation on https://www.npmjs.com/package/react-query 'Starting with v4, react-query is now available as @tanstack/react-query'1 parent 58188a9 commit a7b754a
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
| 144 | + | |
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
182 | | - | |
| 182 | + | |
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
| |||
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
221 | | - | |
| 221 | + | |
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
| |||
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
256 | | - | |
| 256 | + | |
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
| |||
0 commit comments