JSFiddle - React, Tailwind, and code Playground

by LyndseyB

HTML

<table class='js-scroll'>
  <thead>
      <th> Column 1 </th>      
      <th> Column 2 </th>
      <th> Column 3 </th>
      <th> Column 4 </th>
      <th> Column 5 </th>
  </thead>
</table>

Babel + JSX

(function tableScroll(collection) {
	'use strict';
  
  try {
    if(collection == null) {
      throw new Error(`Collection cannot be found.`);
    }
  } catch(e) {
  	console.warn(e.message);
    return;
  }    
})() {

}


tableScroll();

//tableScroll(document.querySelector('.js-scroll'));