Neha / AMA

AMA - Ask me anything
10 stars 2 forks source link

Inner working dynamics of HOC and general questions #13

Open haripallikere opened 5 years ago

haripallikere commented 5 years ago

Hey thank you for Q&A session. I have couple of questions

  1. How Provider and connect of react-redux communicate(data-flow) with react?
  2. Using third party react components . Will it compromise web-app performance?
  3. What tools and technology I used be aware of for applying for jobs? Currently working on React for front-end view ,node for backend and mongoDB for database.
vijayksingh commented 5 years ago

1 - From Angular Technology so can't answer the first one. 2 - Always try to keep third party components as low as possible, if some functionality take say 7-10 days. It's better to implement it locally. Also, you should look for the source code of third party components, do they have dependencies, if they have large dependencies, and those are not well maintained. It's a no go for me. If a third party component is implemented from scratch, I usually look at the code and try to implement it myself. For example at my organization instead of using a third-party component for capturing images, I found one clean package and wrote my own implementation with some fewer features.

3 - GraphQL is good and it's here to stay. Apart from this, you can also look into NestJS a backend framework which is quite good.

Neha commented 5 years ago

1) Provider uses the context API from react js for passing the store information across all the components and connect becomes the consumer for the context api receives the information about the store.

Connect also provides HOC for prop binding for the components.

2) yes, 3rd party components will always impact your performance. How to evaluate? The component might be having a lot of internal dependencies or could be on the 3rd party. As @perceptron007 suggested keep them as low as possible. I also implement from scratch to have more control.

3) When you are applying for Job as FE, they will look for HTML, CSS, Javascript and how well versed you are with the internals of web (Reactjs or any UI framework is secondary). So, you should know - performance, how DOM works, architecture design, SEO, Accessibility. These will remain same concepts even you are applying as React dev, angular or any FE role. Generally, companies ask for framework-specific questions at last only.