there will be several things manipulated when this happens, but my issues all seem to be making things look right, functions and math et. all I'm fine with.
@AlbertoGiambone First you need to figure the logic how to separate intand float (decimals). After that you can use that logic and use .filter() method. @markclynch I have not used animations in React such way. Checking the animations section in official docs might help.
@ezioda004 Not sure if I should just setup state with an isOn boolean and then I could conditionally render a static image or a spinning one using a toggle method, but again that sounds like it wouldn't be quite right.
I'll definately need that method anyhow and the onClick function would toggle between true and false anyway.
@markclynch i would conditionally add or remove a class from the logo and make the logo spin with css if the class is set
@alpox Thanks, I'll do some googling as I didn't think that was something really doable.
@markclynch have you looked into styled-components? Or any other JS-in-CSS alternative?
Makes working with react (ie JS) super easy
I started looking at it
Just watched one video
@Marmiz I watched this one Glen Maddern - Styling React Apps with Styled Components
But I'm so new that these guys don't talk like I'm an idiot
so they don't show exactly how things are done, more high level concepts
@markclynch why watch a video. Read the docs and you're good to go :smile:
I usually use styled-components too. They are great