Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- axios.get(`http://divulgacandcontas.tse.jus.br/divulga/rest/v1/candidatura/listar/2016/58238/2/${candidateCode}/candidatos`)
- .then(response => {
- this.setState({
- data: response.data.candidatos
- }, () => {
- this.setState({
- isFetching: false
- })
- })
- })
- .catch(error => {
- console.log(error);
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement