JSFiddle - React, Tailwind, and code Playground

by Rafal Pastuszak

HTML

<script src="https://raw.github.com/digitalBush/jquery.maskedinput/1.3.1/dist/jquery.maskedinput.js"></script>
<input type="phone" placeholder="Phone" data-use="mask" data-config="99/99/9999">

CoffeeScript

$ -> $('[data-use]').each -> $(@)[$(@).data 'use']($(@).data 'config')