Get the newest updating timestamp automatically by fetching and parsing meta.json.
Initially, I set year and month to null, and use useEffect to fetch meta.json. After parsing the meta.json, use setState to update year and month and render whole page.
Get the newest updating timestamp automatically by fetching and parsing meta.json.
Initially, I set
year
andmonth
to null, and useuseEffect
to fetchmeta.json
. After parsing the meta.json, usesetState
to updateyear
andmonth
and render whole page.Signed-off-by: Yeming Gu 51205903090@stu.ecnu.edu.cn