DEV Community

Vlad Solokha
Vlad Solokha

Posted on

Challenges Building React App

I’m working on this app that’s in my GitHub repo called pick-name. Link.

There are a couple things I'm trying to work through or solve in my code:

  1. I’m trying to create a button that will show or hide all the students in a list in a class section. The list of students are an object property called “studentNames”.

  2. I'm trying to have the array property, "studentNames" be able to modified so that can be used by client to add to student names.

  3. Names in the list should be editable. So client can click on a name in the list and edit it.

It’s seems simple it but for me a bit challenging to wrap my head around. Articles or help pages that I've googled included information about how to do this, but the guides did not include code that used hooks. All the code I saw was written using class and object notation.

I was deciding to learn the class notation in JS (which I already know) and figure out how the class notation converts to the hook notation used by React so I can implement those ideas into my app.

I just need to spend some more time reading into these guides. Also, when I add the above features, I need to make sure my codebase stays simple and light and not bulky. I want this app to work quickly and soon.

AWS Q Developer image

Your AI Code Assistant

Automate your code reviews. Catch bugs before your coworkers. Fix security issues in your code. Built to handle large projects, Amazon Q Developer works alongside you from idea to production code.

Get started free in your IDE

Top comments (0)

AWS GenAI LIVE image

Real challenges. Real solutions. Real talk.

From technical discussions to philosophical debates, AWS and AWS Partners examine the impact and evolution of gen AI.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay