version5
This commit is contained in:
parent
1b8ef692d3
commit
81d9c6f6ac
@ -14,7 +14,7 @@ const ProductList: React.FC = () => {
|
||||
const [loading, setLoading] = useState<boolean>(true);
|
||||
|
||||
useEffect(() => {
|
||||
axios.get('http://127.0.0.1:8000/api/products/')
|
||||
axios.get('http://127.0.0.1:8000/products/')
|
||||
.then(response => {
|
||||
setProducts(response.data);
|
||||
setLoading(false);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user