Software/greenhouse-app/src/app/components/App.js
// Update visit count to the web page
Update visit count to the web page
Update visit count to the web page
updateVisitCount() {
    fetch(
      "https://api.countapi.xyz/update/jfk-school/greenhouse?amount=1"
    ).then((res) =>
      res.json().then((res) => {
        this.setState({ visitCount: res.value });
        console.log(this.state.visitCount);
      })
    );
  }
updateVisitCount ( ) { fetch ( "https://api.countapi.xyz/update/jfk-school/greenhouse?amount=1" ) . then ( ( res ) => res . json ( ) . then ( ( res ) => { this . setState ( { visitCount : res . value } ) ; console . log ( this . state . visitCount ) ; } ) ) ; }
Update visit count to the web page
Update visit count to the web page