0

I would like to use:

class UserDetails < HyperComponent
  param :user

  render do
    H1 { user.name }
  end

Instead of

class UserDetails < HyperComponent
  param :user

  render do
    H1 { @User.name }
  end

How do I enable this as the default?

BarrieH
  • 373
  • 3
  • 11

1 Answers1

1
class HyperComponent
  include Hyperstack::Component
  include Hyperstack::State::Observable
  param_accessor_style :accessors  # this is now the prefered param style
end
Mitch VanDuyn
  • 2,838
  • 1
  • 22
  • 29