Skip to content
  • Unlock Pro
  • Log in with GitHub
Profile
OverviewSolutions
16
Comments
1

Harvey Yerik

@YerikAH370 points

I'm a Full Stack developer with React and Node.js

I’m currently learning...

PHP

Latest solutions

  • Fylo landing page developed with React

    #react#react-testing-library#tailwind-css

    Harvey Yerik•370
    Submitted about 2 years ago

    0 comments
  • Space Tourism multipage website, developed with React and TypeScript

    #react#styled-components#typescript#react-router

    Harvey Yerik•370
    Submitted over 2 years ago

    1 comment
  • Sunny Agency landing page, developed with React and TypeScript

    #react#typescript#vite

    Harvey Yerik•370
    Submitted over 2 years ago

    0 comments
  • ecommerce product page developed with Vue.js

    #vue

    Harvey Yerik•370
    Submitted over 2 years ago

    1 comment
  • Ping single column, developed with React and TypeScript

    #react#typescript

    Harvey Yerik•370
    Submitted over 2 years ago

    0 comments
  • URL Shortening API, developed with React and TypeScript

    #accessibility#react#typescript#styled-components

    Harvey Yerik•370
    Submitted over 2 years ago

    0 comments
View more solutions

Latest comments

  • Lucian•120
    @iflucian
    Submitted over 2 years ago

    Advice generator app solution

    1
    Harvey Yerik•370
    @YerikAH
    Posted over 2 years ago

    Hello!! 👋

    You can add this:

    const response= await fetch(urlAPI, {
        method: "GET",
        cache: "no cache",
      }); 
    

    The above code is so that it does not cache the tips, it seems that when I click on the button it only gives me a tip. Although this can also be solved by changing the url to https://api.adviceslip.com/advice/${id}, and for each request they can change the id with a random number.

    You can also implement an error handler, in case there is an error in the API.

      try {
        const response = await fetch(urlAPI, {
          method: "GET",
          cache: "no-cache",
        });
        if(!response.ok){
          throw {
            // 
          }
        }
      } catch (err) {
        // 
      }
    

    Hope am helpful.

    Good job for completing this challenge.

    Marked as helpful
Frontend Mentor logo

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub