JSFiddle - React, Tailwind, and code Playground

HTML

<div id="myid"></div>
<!-- please move your mouse over the black board, to start drawing -->

CSS

#myid{background: none repeat scroll 0 0 #000000;
    color: #FFFFFF;
    display: block;
    height: 1000px;
    margin: 3%;
    position: relative;
    text-indent: -1100px;}

JavaScript

$('#myid')
.css('position','relative')
.unbind().die()
.bind('mousemove mouseover',function (e){
    //$(this).children().remove()
  var top = parseInt(e.pageY)-$(this).offset().top;
  var left= parseInt(e.pageX)-$(this).offset().left;
//  console.log(top); return flase;
  var pixel= $('<div></div>')
    .css({
        width:10,height:10,
        background: '#fff',
        position:'absolute',
        top: top, left: left,
        'border-radius': 2
    });
    $(this).append(pixel);
});