Using Higher Order Components in a React Application

  • If you have started using ReactJS recently often you might have felt that you are performing repeated logic in many components.
  • Well Higher Order Component (HOC) provides solution to such a kind of problems.
  • A function (Functional component in React) which takes a component and gives back another component.
  • So the exact benefits are:

    Functional components started from React V15.

  • But apart from that if we are careful enough we can have an architecture which can abstract logic that can be shared across other presentational components using HOC has great benefits.

If you have started using ReactJS recently often you might have felt that you are performing repeated logic in many components. For example consider an app having:
Continue reading “Using Higher Order Components in a React Application”

Differences between AngularJS, VueJS and ReactJS – hello JS

Differences between #AngularJS, #VueJS and #ReactJS:

  • Another common question regarding ReactJS is whether it is necessary to learn Flux to learn ReactJS .
  • Unlike AngularJS , ReactJS is not a framework, it’s a library.
  • The prospect is that a lot of companies will still use AngularJS for quite a while.
  • It is entirely possible to write an application in ReactJS without the use of Flux and Redux .
  • The Facebook team with ReactJS solved these problems through the Virtual DOM – object that maps the whole tree of the DOM .

AngularJS is one of the most famous framework out there, gaining a lot of momentum lately. Some reasons for its popularity are: community engagement, open-source, the interest of the google team, etc…
Continue reading “Differences between AngularJS, VueJS and ReactJS – hello JS”