import React ,{ useEffect, useState } from "react";
let FicheAxois= ()=>{
let [state, setState]= useState([]);
const fitshData= async ()=>{
await fetch('https://jsonplaceholder.typicode.com/posts'
,{method: 'GET'
}).then(req=>req.json()).then(data=>setState(data))
}
useEffect(()=>{
fitshData()
},[])
return(
<div>
aaa
</div>
)
};
export default FicheAxois;