Ctrl + a
- Move cursor to start of lineCtrl + e
- Move cursor to end of lineCtrl + b
- Move back one characterAlt + b
- Move back one wordCtrl + f
- Move forward one characterAlt + f
- Move forward one wordCtrl + d
- Delete current characterCtrl + w
- Cut the last word
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// const axios = require('axios'); | |
import axios from 'axios'; | |
const BASE_URL = `https://somewhere123.website`; | |
function getData1(url_path){ | |
// Make a request for a user with a given ID | |
// axios.get('/user?ID=12345') | |
const URL1 = `${BASE_URL}${url_path}`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useEffect, useState } from 'react'; | |
function ComponentExample() { | |
const [data, setData] = useState([]); | |
const [loading, setLoading] = useState(true); | |
const axiosInstance = axios.create({ | |
baseURL: 'https://example.com/api', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import axios from 'axios'; | |
const ButtonTest = () => { | |
const handlePostRequest = () => { | |
const url = 'https://example.com/api/endpointpath'; | |
const data = { | |
valueA: 'valueA', | |
valueB: 'valueB', |