create react app项目中fetch请求本地json数据报错
fetch请求本地json数据报错export const getInitToDoLists = (localUrl) => { fetch(localUrl) .then(res => res.json()) .then(data => { console.log('local data', data) })}错误提示信息如下:解决方案:将对饮的json数据置于public目录下,使