Skip to content

Commit

Permalink
🐛 Fix example
Browse files Browse the repository at this point in the history
Move to swapi.dev since swapi.co is down
  • Loading branch information
frinyvonnick committed Sep 18, 2020
1 parent e37e615 commit e11a3ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function useStarWarsCharacters() {
const [nextCharactersUrl, setNextCharactersUrl] = useState()

useEffect(() => {
fetch('https://swapi.co/api/people/?page=1')
fetch('https://swapi.dev/api/people/?page=1')
.then(res => res.json())
.then(({ next, results }) => {
setCharacters(results)
Expand Down

0 comments on commit e11a3ad

Please sign in to comment.