title: Been doing frontend for 2 years now and still unsure when/how to use classes
body: <p>In my day to day job, I deal with a backend built on Ruby and the frontend is React and vanilla Javascript.  I understand how React is essentially built on classes but I don't understand, based on the simple examples given, that it isn't backend.  </p>
  
  <p>Like:</p>
  
  <pre><code>class Person() {
      constructor(firstName, lastName) {
        this.firstName = firstName;
        this.lastName = lastName;
      }
   }
  
   let person = new Person("robert", "smith")
  </code></pre>
  
  <p>^ Isn't the above code essentially what my Ruby backend would be doing when a user enters data in a field -- it would take that data, and create a <code>Person</code> based on the Ruby model and store it in the database?</p>