Skip to content
  • Unlock Pro
  • Log in with GitHub
Profile
OverviewSolutions
6
Comments
2

Matt

@mslee017Connecticut180 points

I’m a mysterious individual who has yet to fill out my bio. One thing’s for certain: I love writing front-end code!

I’m currently learning...

React, TypeScript, NextJS

Latest solutions

  • Password Generator w/ TypeScript & Chakra UI

    #react#typescript#chakra-ui

    Matt•180
    Submitted about 2 years ago

    0 comments
  • Interactive Rating Component w/ React, Tailwind

    #react#tailwind-css

    Matt•180
    Submitted over 2 years ago

    0 comments
  • Dictionary Web App w/ React & Tailwind

    #react#tailwind-css

    Matt•180
    Submitted over 2 years ago

    1 comment
  • REST Countries API w/ React, Router & Tailwind

    #react#react-router#tailwind-css

    Matt•180
    Submitted over 2 years ago

    0 comments
  • Advice Generator w/ CSS, HTML, Fetch API


    Matt•180
    Submitted about 3 years ago

    0 comments
  • Planet Facts Site w/ React & Material UI

    #react#material-ui

    Matt•180
    Submitted over 2 years ago

    0 comments

Latest comments

  • thomasrichmond•10
    @thomasrichmond
    Submitted over 2 years ago

    Landing page using React

    #react#vite
    2
    Matt•180
    @mslee017
    Posted over 2 years ago

    Hey there! If you want to give it a go without exact code I'll try and lay steps our here for the button with state, and feel free to look at my project if you get stuck. For the button with state, what I did was create a state value called currentActive and by default it should be set to null. You can then create a function that takes an argument and all that function is going to do is setCurrentActive to the number it clicks, like so: 1). Create a state that will essentially hold the current active element of the button groups. It should be initialized to null

    2). Create a function to handle this state on click, it will need an argument (eventually receives index of the array being Mapped over). Function should simply then be used to set the current value of the state created above

    3). On click function inside the elements you are returning/mapping over. Map should use TWO arguments in this case, the number itself and the index argument the callback gives. Your function that is setting the state inside here should then take the index as its argument

    4). Conditional styles! Inside the classes, use template literal to check if the index is equal to the state value. If it is, it should be orange. If not, the dark blue.

    Good luck!

  • MazzCode•120
    @MazzGuille
    Submitted over 3 years ago

    Resposive Interactive rating component

    4
    Matt•180
    @mslee017
    Posted over 3 years ago

    Well done! If I had to nitpick anything, I would say to check the responsiveness a bit. From 375px to 700px where you have your media query, the card keeps on growing, and then it shrinks again. Maybe try a max with on the card container for the two breakpoints they specify (375px and 1440px I think)? Javascript and everything else looks good :)

    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

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