Image for post
Image for post

Unlike other OOP languages, the this keyword behaves differently. There are also differences between its strict mode and non-strict mode counterpart. As defined on MDN, this in non-strict mode refers to an object and in strict mode can be of any value. For example with Ruby, every line is executed inside an object. One can think of self in Ruby as the current object. So as soon as you explicitly call a method on another object, that object becomes self.

Global:

When calling this outside of a function (Global context) it refers to the global object whether in strict or non-strict mode. Shown below, we called this in the whodis() function and was returned with the window object. …


Image for post
Image for post

What are React Hooks?

“Hooks are a new addition in React 16.8. They let you use state and other React features without writing a class.” — React Docs

Pretty straightforward definition. But why would we not want to use classes in React? One of the biggest reasons that many developers can relate to, is the usage of the this keyword. So much revolves around this and it is hard to fully understand how it works compared to other OOP languages.

Component Lifecycles

We will take a look at componentDidMount() , componentDidUpdate() , and componentWillUnmount() . All other lifecycle methods will be deprecated in React 17.

The following diagram shows the lifecycle methods and how they are used. …


Image for post
Image for post

If you have no idea what in the world ESLint is, well you’re in the right place. ESLint can be referred to as a pluggable JavaScript linter. Now what does that mean. Well it’s basically a tool used for identifying and reporting on problems in JavaScript. Which makes your code easier to maintain.

What’s next you say? Well let’s pull up our text editor and terminal and start the demonstration process !

Commands

Create a folder if you haven’t already and cd into that directory. Pull up the and console run npm init -y , what this will do is create a package.json file. …


SAY WHATT ?!!

HyeYep! That’s right. I was just as surprised and still am now. This course is a masterpiece, an absolute must have for the aspiring Web Developer. Well at least the previous course was. This course however has been completely redone. From the ground up. With tons of additional content. And the most important to note, it’s all up-to-date with modern syntax as opposed to the previous edition that was released.

Now if you’ve never taken The Web Developer Bootcamp course before, there are always constant sales going on on Udemy, where you will find the course. At the time of writing, the course is currently being sold for $139. I highly advise against buying the course at this price tag considering the fact that Udemy always have HUGE discounts. I snagged this masterpiece up for $10. …

Javaughn Grant

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store