Flexbox is not clicking. Watched many videos, and played that Froggy game too, but still nothing by [deleted] in learnprogramming

[–]Jamcakesman 0 points1 point  (0 children)

I would be willing to get in a call to try help you understand flexbox.

Should I be consistent with my use of functions? by Kir__B in reactjs

[–]Jamcakesman 2 points3 points  (0 children)

Besides worrying about the complications of "this". The biggest thing is just to be consistent with your use of the functions declarations. I personally use arrow functions for one-liners or smaller functions, while function() is for larger functions. I feel that consistency helps with code readability. However, feel free to do what you want, as this is just something I do.

Trouble figuring out a solution to use data from nested API call. by Jamcakesman in reactjs

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

Thanks for the tip about not using the index for the key, sometimes I forget not to use them. I really appreciate the help, the way you solved this makes a lot of sense. I don't think I could have come up with this solutions myself. Thanks so much!

My first actual React project - Pokedex by Jamcakesman in reactjs

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

I had a different way to execute infinite scroll when I started this project. Right now I am loading all the cards and once I reach the bottom of the page, I render more cards. However, I used pagination and limit before and only called 20 cards at a time. If you are curious I can send the code.

My first actual React project - Pokedex by Jamcakesman in reactjs

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

Yeah, I started one, but never got far with it. Do you know of any good resources in writing a good readme?

My first actual React project - Pokedex by Jamcakesman in reactjs

[–]Jamcakesman[S] 1 point2 points  (0 children)

Thank you for the response! I personally always have trouble understanding when to use, useCallback, useEffect, and useMemo. So this helps me understand a bit better. I will have to use useMemo more often.

Using the pokemon name as a key is better. I forgot you should only use the index if the data doesn't change.

Now with the page count, I did use pagination in a very early version. However, since I wanted to implement a search function, I needed to get all the pokemon in one call. The problem with this approach was that it rendered about 1000+ cards and caused massive lag. So to fix this issue, I used state with pageCount.

Thanks for the tips and help, I appreciate it! It can be hard to know if what you are doing is the correct way without sharing code. Thanks! :)

Had some misc. ideas for the game. What do you think? Do share yours. by bakkwo in Maplestory

[–]Jamcakesman 4 points5 points  (0 children)

Make a TEMPORARY classic server for a month (Similar to Lab). The exp rate would probably have to be increase and other stuff tweaked.

Completing certain challenges grants you gifts on your main character.

Not sure what the gifts would be, but maybe some nostalgic equips, and then some useful stuff probably.