JSFiddle - React, Tailwind, and code Playground

by LyndseyB

Babel + JSX

!function($) {

"use strict";

  var GunnerApp = {
	 	init(plugins) {
	 			plugins.forEach(function(plugin) {
       			GunnerApp[plugin]();
        });		
  	},
    menu() {
    	console.log('init menu in here');
    },
    gallery() {
    	console.log('init gallery in here');
    }    
  }
  
 
  
  $(document).ready(function() {
  	GunnerApp.init(['menu', 'gallery']);
  });

}(jQuery);