diff --git a/index.html b/index.html index e0d1c84..1d0f07a 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@ - Vite + React + TS + Garfield IP
diff --git a/src/App.tsx b/src/App.tsx index 21807fb..a4ae49d 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -7,9 +7,9 @@ function App() { const [ip, setIP] = useState('') const getData = async () => { - const res = await axios.get('https://api.ipify.org?format=json'); - console.log(res.data.ip) - setIP(res.data.ip); + const res = await axios.get('https://ifconfig.louisgallet.fr/ip'); + console.log(res.data) + setIP(res.data); } useEffect(() => {