Horoscope not displaying from React Horoscope app?

This page summarizes the projects mentioned and recommended in the original post on /r/CodingHelp

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • aztro

    The Astrology API 💫 Get daily horoscope!

  • const [sunSign, setSunSign]=useState(''); /* My sunSign state variable is set to an empty value because this value depends on what the user chooses so I didn't want there to be a set value. */ const [sunSignData, setSunSignData]=useState(null) const [loading, setLoading]=useState(false); /* My loading state variable is initialized to false so I could toggle between states by passing boolean value. False loading will hold the current value of the state and setLoading will let me change it */ // const [link, setLinkView]=useState(false); const [displayCard, setDisplayCard]=useState(false); const [reading, getReading]=useState(false); useEffect(() => { setLoading(true); const url = `https://aztro.sameerkumar.website/?sign=${sunSign}&day=today`; fetch(url, { method: 'POST' }) .then((res) => res.json()) .then((data) => setSunSignData(data)) .then(() => setLoading(false)); }, [sunSign]); const handleSelection = (event) => { setSunSign(event.target.value); } if (loading === true) { return '...Loading, wait one moment, please.'; } // const handleSelection = (event) => { // setSunSign(event.target.value); // } return ( SELECT YOUR SIGN Capricorn Aquarius Pisces Taurus Gemini Cancer Leo Virgo Libra Scorpio Sagittarius ) }

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • I can't get the data I want. (REST API)

    1 project | /r/swift | 25 Nov 2022
  • I don't understand this API usage

    1 project | /r/swift | 21 Nov 2022
  • Setting up a Vuex Store with Nuxt

    4 projects | dev.to | 16 Feb 2022
  • Books for API design

    1 project | /r/ExperiencedDevs | 10 Dec 2023
  • Zalando RESTful API and Event Guidelines

    1 project | news.ycombinator.com | 15 Nov 2023