JSFiddle - React, Tailwind, and code Playground

by Patrick Gordon

HTML

<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.6.1/lodash.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.5/css/materialize.css">
<div id="noteList">
</div>
<div class="divider">
</div>

SCSS

$grey-color: #e0e0e0;

body {
  background-color: #ffffff;
}

  .noteItem:last-child {
    padding: 5px 0 5px 0;
  }

  .noteItem:not(:last-child){
    border-bottom: solid 1px $grey-color;
    padding: 5px 0 5px 0;
  }

JavaScript

_.map(['a', 'b', 'c'], function(letter) {
	var node = document.createElement("div");
  node.className += "noteItem";
  node.innerHTML = 'test'+ letter;
  document.getElementById("noteList").appendChild(node);  
});