| by Gagandeep Singh | No comments

Understanding ReactJS Hooks

React Hooks have been added to React library from version 16.8 and they provide the functionality to use state and few other features inside the functional component without creating React class.  useState The first hook is useState. This let us define a state inside a functional component. useState() returns the current state and a function […]

Read More
| by Gagandeep Singh | No comments

ES7 features you should be using.

Array includes() method The old way to check if some value is present inside an array was to use Array’s indexOf() method. IndexOf() returned -1 if element is not found or else the position of element if it’s present in the array. Exponential operator Similar to Math.pow(), the exponential operator ** was introduced in ES2016. […]

Read More