JSFiddle - React, Tailwind, and code Playground

JavaScript

(function(window, undefined) {

	"use strict";

	//
	var grace = function(options) {
		return new grace.fn.init(options);
	};

	//
	grace.fn = grace.prototype = {
		//
		set: function() {
			alert("grace.set() OK");
		},

		//
		init: function() {
			alert("grace() OK");
		},
	};

	//
	window.grace = grace;

})(window);

//
grace();
grace.set();