DEV Community

Cover image for Frontend Challenges: Front-end Engineer Assignment

Frontend Challenges: Front-end Engineer Assignment

TK on January 17, 2022

The original post was published at iamtk.co This is part of the Frontend Challenges Series. Today I finished a frontend challenge and I had a bla...
Collapse
 
guillep2k profile image
Guillermo Prandi •

Impressive end-to-end walkthrough. Thank you!

Collapse
 
teekay profile image
TK •

Thanks! glad you liked. Any feedback is always welcome!

Collapse
 
ayomiku222 profile image
Ayomiku Olatunji John •

Wow..I did something like this in my tech company and I know how technical it's to build something like this. You really did well bro. I loved the way you arrange your code and your documentation is top-notch. Kudos!!!

Collapse
 
teekay profile image
TK •

Thank you! I really appreciate that!

Collapse
 
hello10000 profile image
a •

I can't read with this font

Collapse
 
z2lai profile image
z2lai •

The body text font? Is it too large/wide?

Collapse
 
hello10000 profile image
a •

oh nevermind

Thread Thread
 
teekay profile image
TK •

I hope you can read without any problem. Let me know if I can do anything to solve this issue!

Collapse
 
dmitrysobolevsky profile image
Dmitry Sobolevsky • • Edited

Great job!
Thanks for sharing!

Does Context better in your case in terms of performance ?

Collapse
 
teekay profile image
TK •

Thank you! Really appreciate! :)
The Context API can be a performance bottleneck if used in the wrong way.
If you wrap your component and use a consumer only it really need to be used, you "solve" prop drilling and re-render only the necessary parts of the component (components that directly use the provider value).

You need to always be careful when implementing a context api driven component and keep track of the re-renders in your component. Other state management libraries could be a better choice for more complex cases.

Collapse
 
dmitrysobolevsky profile image
Dmitry Sobolevsky •

Thanks for explanation. Appreciate it

Collapse
 
marekdano profile image
Marek Dano •

Where did you get this challenge from? Did you make it by yourself?
It's very interesting article!!! Thanks for sharing it!!!

Collapse
 
teekay profile image
TK •

It was part of an interview I did in the past!
Thank you, really appreciate the comment!

Collapse
 
joset98 profile image
joset98 •

dude itΒ΄s awesome that challenge and i like your approach, good job

Collapse
 
teekay profile image
TK •

Thank you, really appreciate the comment! I put a lot of work on the challenge and the post.