Skip to content

benetesla/whiskerwonderlands

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FactCat

Api sobre curiosidades de gatos.

demonstração

Captura de Tela (91)

clone este projeto

git clone https://github.com/benetesla/whiskerwonderlands.gi
  npm install whiskerwonderlands
  npm start

Uso/Exemplos

import React, { useState, useEffect } from 'react'

const ApiUrl = 'https://catfact.ninja/fact'
const fetctData = async () => {
            const response = await fetch(ApiUrl)
            const data = await response.json()
            setCat(data)
            setLoading(false)
        }
        fetctData()
  }
        

Referência

License

MIT License

Stack utilizada

Front-end: CSS3 HTML js React