You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
325 B
15 lines
325 B
import React, { useState, useEffect } from "react"; |
|
import axios from "axios"; |
|
|
|
export default function App() { |
|
useEffect(() => { |
|
axios.get("https://baconipsum.com/api/?type=meat-and-filler").then(res => { |
|
console.log(res.data); |
|
}); |
|
}); |
|
return ( |
|
<div> |
|
<h1>Hello from App!</h1> |
|
</div> |
|
); |
|
}
|
|
|