JSFiddle - React, Tailwind, and code Playground

by luka kupunia

HTML

<script src="https://cdnjs.cloudflare.com/ajax/libs/fuse.js/3.4.5/fuse.min.js"></script>
<input type="text" id="searchTextbox">
<div id="test"></div>

JavaScript

var list = [
  {
      title: "Old Man's War",
      author: {
        firstName: "John",
        lastName: "Scalzi"
      }
  },
  {
      title: "The Lock Artist",
      author: {
        firstName: "Steve",
        lastName: "Hamilton"
      }
  },
  {
      title: "HTML5",
      author: {
        firstName: "Remy",
        lastName: "Sharp"
      }
  },
  {
      title: "Right Ho Jeeves",
      author: {
        firstName: "P.D",
        lastName: "Woodhouse"
      }
  },
  {
      title: "The Code of the Wooster",
      author: {
        firstName: "P.D",
        lastName: "Woodhouse"
      }
  },
  {
      title: "Thank You Jeeves",
      author: {
        firstName: "P.D",
        lastName: "Woodhouse"
      }
  },
  {
      title: "The DaVinci Code",
      author: {
        firstName: "Dan",
        lastName: "Brown"
      }
  },
  {
      title: "Angels & Demons",
      author: {
        firstName: "Dan",
        lastName: "Brown"
      }
  },
  {
      title: "The Silmarillion",
      author: {
        firstName: "J.R.R",
        lastName: "Tolkien"
      }
  },
  {
      title: "Syrup",
      author: {
        firstName: "Max",
        lastName: "Barry"
      }
  },
  {
      title: "The Lost Symbol",
      author: {
        firstName: "Dan",
        lastName: "Brown"
      }
  },
  {
      title: "The Book of Lies",
      author: {
        firstName: "Brad",
        lastName: "Meltzer"
      }
  },
  {
      title: "Lamb",
      author: {
        firstName: "Christopher",
        lastName: "Moore"
      }
  },
  {
      title: "Fool",
      author: {
        firstName: "Christopher",
        lastName: "Moore"
      }
  },
  {
      title: "Incompetence",
      author: {
        firstName: "Rob",
        lastName: "Grant"
      }
  },
  {
      title: "Fat",
      author: {
        firstName: "Rob",
        lastName: "Grant"
      }
  },
  {
      title: "Colony",
      author: {
        firstName: "Rob",
        lastName: "Grant"
      }
  },
  {
    ...