diff options
author | Adrián Oliva <adrian.oliva@cimat.mx> | 2023-05-16 19:52:29 -0600 |
---|---|---|
committer | Adrián Oliva <adrian.oliva@cimat.mx> | 2023-05-16 19:52:29 -0600 |
commit | 17c1d3d2070ee0c060c3e71a9e5868f004b2b034 (patch) | |
tree | c0e7cf17901196b089291c63e8f97058068aed35 /src/features/counter/counterAPI.js | |
download | ToDo-App-FE-17c1d3d2070ee0c060c3e71a9e5868f004b2b034.tar.gz ToDo-App-FE-17c1d3d2070ee0c060c3e71a9e5868f004b2b034.zip |
Start point.
Visit https://github.com/nvh95/vite-react-template-redux to see original
template.
Diffstat (limited to 'src/features/counter/counterAPI.js')
-rw-r--r-- | src/features/counter/counterAPI.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/features/counter/counterAPI.js b/src/features/counter/counterAPI.js new file mode 100644 index 0000000..cc9b4a4 --- /dev/null +++ b/src/features/counter/counterAPI.js @@ -0,0 +1,6 @@ +// A mock function to mimic making an async request for data +export function fetchCount(amount = 1) { + return new Promise((resolve) => + setTimeout(() => resolve({ data: amount }), 500) + ); +} |