Commit 65ca0883 authored by wildfirecode's avatar wildfirecode

1

parent f2d462a3
import React from 'react'; import React from 'react';
function Footer() { function Footer() {
const handleClick = () => { const handleClick = async () => {
console.log('hahah..'); const response = await fetch('/api/todos');
fetch('/api/todos') const json = await response.json();
console.log(json.data);
} }
return ( return (
<div> <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