README.md in lite-component-1.0.0 vs README.md in lite-component-1.0.1

- old
+ new

@@ -54,10 +54,11 @@ In the basic Rails app setup component `*.scss` and `*.js` will be automatically load via the tree lookup. In order to require assets such manually require them in the manifest, e.g. `application.css`: +*Similar process for both CSS and JS* ``` /* * All components: *= require lite-component @@ -71,9 +72,21 @@ ### Components If you create a `ApplicationComponent` file in the `app/components` directory, the generator will create file that inherit from `ApplicationComponent` if not `Lite::Component::Base`. + +Components come with view helpers already included. + +If you want to access route helpers in your components just include them like: + +```ruby +# app/components/alert_component.rb + +class AlertComponent < Components::Component + include Rails.application.routes.url_helpers +end +``` ## Usage ### Attributes and blocks