You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Catalyst](https://catalyst.rocks/) is a small library for developing Web Components and is very similar to [Stimulus](https://stimulus.hotwired.dev/)
44
-
Catalyst has controller and target decorators, in order to use them, you should import them from `@github/catalyst` into `app/components/<status>/<component_name>.ts`
45
-
`import {controller, target} from '@github/catalyst'`
45
+
[Catalyst](https://catalyst.rocks/) is a small library for developing Web Components and is very similar to [Stimulus](https://stimulus.hotwired.dev/).
46
46
47
-
then you can use them like this:
47
+
Catalyst has `controller` and `target` decorators which you have to import from `@github/catalyst` inside `app/components/<status>/<component_name>.ts`. It can then be used like this:
@@ -75,7 +77,6 @@ The script also edits some files:
75
77
- The component is added to the list of components in `test/component/component_test.rb`, in that you need to add examples for all the required arguments of the component
76
78
- The pcss file is added to the list in `app/components/primer/primer.pcss`
77
79
- The js file is added to the list in `app/components/primer/primer.ts` if the `js` flag is passed
78
-
and since then you can add any npm package dependency by just importing it in `app/components/<status>/<component_name>.ts`
0 commit comments