DEV Community

Zach
Zach

Posted on

Solo Week + React (Pt. 3)

I didn't intend for this to be a series, but at three installments, I think we're there.

React tidbits

I usually drop things like this below my prose, but today I'm bringing it to the light.

  • Curly braces within the render function need to go inside an html element like <div> {this.example} </div> otherwise they won't be recognized as jsx (or if that's not quite right, let's just say it won't work).

  • Back in the day I wrote a post on .forEach and using it in a solution. Another dev.to user helpfully suggested using Array.prototype.some() to examine an array to produce a boolean condition. Well, it came in handy today - I used it to search a product registry for whether items were in stock (did any items have a non-zero count?). It's so gratifying to apply things you've come across and to see them work their way into your work. Really great.

  • I worked with React select inputs today and got some good learnins in there. Maybe I can follow up in part four on what I picked up.

Where I'm at on the FEC Project

I'm assigned to the 'overview' component. It has a lot of moving parts and I've gotten a lot of hands-on practice with state, props, etc. I've touched every sub-component minus one, and have those working at an MVP level. I'd like to add more functionality to those elements, and bring them to near completion tomorrow (although I'm sure Thursday is more likely).

The one element that I've neglected is near-identical to a piece of my teammate's component. I'd like to reuse team code to the greatest extent possible, so I'll check in with him and see what I can borrow. If I have anything that they can borrow, I'll insist that they do.

We're I'm at with my Blog project

I haven't covered any new ground. It's not quite frustrating - I have enough else going on and am feeling productive - but it's not what I want. Incremental progress would be great. Writing this blog eats into the available time. Grrrr.

Entrepreneurship

I had a conversation today with an HR graduate who is pursuing the entrepreneur's path. It was a little difficult talking with him as he wasn't willing to discuss the idea he's working on. He suggested that I refrain from sharing my ideas too.

I disagreed. Ideas are cheap, right? What's the threat - that someone is gonna hear my brilliant idea and drop what they're doing to pursue it? That's not going to happen. That doesn't mean being careless with it. But holding too tightly that you can't workshop it, and hear criticism and reflections - man that's too tight.

Top comments (0)