JSFiddle - React, Tailwind, and code Playground
CoffeeScript
# namespace function from the coffeescript faq
namespace = (target, name, block) ->
[target, name, block] = [(if typeof exports isnt 'undefined' then exports else window), arguments...] if arguments.length < 3
top = target
target = target[item] or= {} for item in name.split '.'
block target, top
# how to define a class in the namespace, using said namespace sample
namespace 'Secrets', (exports) ->
class exports.Hello
constructor: ->
@message = "Secret Hello!"
# test of the namespaced class
a = new Secrets.Hello
console.log a.message