Commit 65ca0883 authored by wildfirecode's avatar wildfirecode

1

parent f2d462a3
import React from 'react';
function Footer() {
const handleClick = () => {
console.log('hahah..');
fetch('/api/todos')
const handleClick = async () => {
const response = await fetch('/api/todos');
const json = await response.json();
console.log(json.data);
}
return (
<div>
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment