From 2bb7f71b9c88b680008564cdf56186360228c317 Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Mon, 27 Sep 2021 21:21:51 -0700 Subject: Fix up examples --- examples/macros/fetchCSV.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'examples/macros/fetchCSV.tsx') diff --git a/examples/macros/fetchCSV.tsx b/examples/macros/fetchCSV.tsx index 0709fd500..b06b1e03e 100644 --- a/examples/macros/fetchCSV.tsx +++ b/examples/macros/fetchCSV.tsx @@ -1,4 +1,12 @@ import Pappa from "papaparse"; +// Example usage: +// const rows = fetchCSV( +// "https://covid19.who.int/WHO-COVID-19-global-data.csv", +// { +// last: 100, +// columns: ["New_cases", "Date_reported", "Country"], +// } +// ); export async function fetchCSV(callExpression) { console.time("fetchCSV Total"); const [ -- cgit v1.2.3