ViewComponent is tested for compatibility with combinations of Ruby v2.5+ and Rails v5+. Ruby 2.4 is likely compatible, but is no longer tested.
In order to avoid conflicts between ViewComponent and other gems that also monkey patch the
render method, it is possible to configure ViewComponent to not include the render monkey patch:
config.view_component.render_monkey_patch_enabled = false # defaults to true
With the monkey patch disabled, use
<%= render_component Component.new(message: "bar") %>