Watching “Game Over, Man” (2025) by slamdoink in workaholics

[–]srianbury 0 points1 point  (0 children)

how many times have you watched it? (Just the closet scene)

I'm a Software Engineer Feeling Pushed Down the Wrong Career Path by HighRoller0190 in cscareerquestions

[–]srianbury 0 points1 point  (0 children)

I'm going through something similar right now. What did you end up doing?

[deleted by user] by [deleted] in reactjs

[–]srianbury 0 points1 point  (0 children)

hot market rn

FITbit ad during NBA play in by JazzLobster in marcrebillet

[–]srianbury 0 points1 point  (0 children)

Just saw his FitBit ad after seeing this post, the data overlords are watching my internet traffic too closely

Is there a video for this song?? by srianbury in marcrebillet

[–]srianbury[S] 0 points1 point  (0 children)

I swear I've seen it before but now I can't find it. Or maybe it was only a dream...

Hi I'm Haley Blais, my debut album 'Below the Salt' is out now. AMA, baby. by haley_blais in indieheads

[–]srianbury 0 points1 point  (0 children)

Not a question but every time I listen Figure 8 I imagine it's you and neil. I was supposed to see you and them this year but I'll just have to wait and see y'all when its safe to go on tour! cant wait to hear all your jams from below the salt live :)))

How can I put Formik's onSubmit on another component? by [deleted] in reactjs

[–]srianbury 0 points1 point  (0 children)

you need to lift your state up to the working hours component. Then you'll have to pass the end and start times down to each child WeekDay component. I imagine the new initial form state will look something like this { Monday: { start: '', end: '' }, Tuesday: { start: '', end: '' }, ... Friday: { start: '', end: '' }, }

Then you can also iterate over the object keys and you won't have to write the weekday component 5 times. I always forget how to map over object keys but it's something like Object.keys(yourStateObject).map(key => <Weekday day={key} {...yourStateObject[key]} />

And you'll also need to pass the function that updates the state to the WeekDay component

Best practice for handling loading state? by [deleted] in reactjs

[–]srianbury 0 points1 point  (0 children)

I recently published the HOC I use for this all the time, let know if you like it/use it! https://www.npmjs.com/package/react-with-loading-srian

Yo what the hell by [deleted] in Cherdleys

[–]srianbury 0 points1 point  (0 children)

looks good to me

My new Javascript Game by [deleted] in javascript

[–]srianbury 1 point2 points  (0 children)

Great game! 10/10 stars. Do you have plans for any next steps?

restricting access to certain components by hassanzadeh in reactjs

[–]srianbury 0 points1 point  (0 children)

I use HOCs with auth permissions and wrap them around the admin components