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

Version Path
playbook_ui-4.1.2 app/helpers/playbook/application_helper.rb
playbook_ui-4.1.1 app/helpers/playbook/application_helper.rb
playbook_ui-4.1.0 app/helpers/playbook/application_helper.rb
playbook_ui-4.0.1 app/helpers/playbook/application_helper.rb
playbook_ui-4.0.0 app/helpers/playbook/application_helper.rb
playbook_ui-3.5.0 app/helpers/playbook/application_helper.rb
playbook_ui-3.4.0 app/helpers/playbook/application_helper.rb
playbook_ui-3.3.0 app/helpers/playbook/application_helper.rb
playbook_ui-3.2.0 app/helpers/playbook/application_helper.rb
playbook_ui-3.1.0 app/helpers/playbook/application_helper.rb
playbook_ui-3.0.1 app/helpers/playbook/application_helper.rb
playbook_ui-3.0.0 app/helpers/playbook/application_helper.rb
playbook_ui-2.9.9 app/helpers/playbook/application_helper.rb
playbook_ui-2.9.8 app/helpers/playbook/application_helper.rb
playbook_ui-2.9.7 app/helpers/playbook/application_helper.rb
playbook_ui-2.9.6 app/helpers/playbook/application_helper.rb
playbook_ui-2.9.5 app/helpers/playbook/application_helper.rb
playbook_ui-2.9.4 app/helpers/playbook/application_helper.rb
playbook_ui-2.9.3 app/helpers/playbook/application_helper.rb
playbook_ui-2.9.2 app/helpers/playbook/application_helper.rb