This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/daterangepicker/daterangepicker.css" /> | |
</head> | |
<body> | |
<h1>Date Range Example</h1> |
This file contains hidden or 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
let reqOne = axios.get('https://api.github.com/repos/stedolan/jq/commits'); | |
let reqTwo = axios.get('https://api.github.com/repos/coderkan/spring-boot-redis-cache/commits'); | |
axios.all([reqOne, reqTwo]).then(axios.spread((…res) => { | |
console.log(res[0]); | |
console.log(res[1]); | |
// you can also set your states. | |
this.setState( | |
{ | |
reqOneCount: res[0].data.length, |
OlderNewer