What do you want to save?
Add Code snippet
New code examples
-
Other 2022-03-02 23:20:18
Getting data from one axios to another in componentDidMount
componentDidMount() { const { match: { params } } = this.props; axios .get(`/api/topics/${params.TopicId}`) .then(response => { this.setState({ topic: response.data }); return axios.get(`/api/users/${response.data.user_id... Add solution -
Javascript 2021-09-26 21:34:06
create gatsby pages node js
const axios = require('axios'); require("dotenv").config({ path: `.env.${process.env.NODE_ENV}` }); const getRepositoryData = async () => { console.log(process.env.API_URL); return axios.get(`${process.env.API_URL}/repositories`); }; ... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5