Sha256: f015ecbd6c2c771aa7659ea00b85a8da95e26901ce24063a68f476801270b2e2
Contents?: true
Size: 529 Bytes
Versions: 30
Compression:
Stored size: 529 Bytes
Contents
# frozen_string_literal: true require "webpacker" require "webpacker/react/railtie" if defined?(Rails) require "webpacker/react/helpers" require "webpacker/react/component" module Playbook module ApplicationHelper include ::Webpacker::Helper include ::Webpacker::React::Helpers def current_webpacker_instance Playbook.webpacker end # def react_component(component_name, props = {}, options = {}) # ::Webpacker::React::Component.new(component_name).render(props, options) # end end end
Version data entries
30 entries across 30 versions & 1 rubygems