@gudhub/gh-component
v2.0.9
Published
This README would normally document whatever steps are necessary to get your application up and running.
Downloads
213
Readme
README
Components creation requirements
- Every component should be inherited from GHComponent.
- Component shoud always has async render() method.
Components features:
- Every component have environment variable inherited from GHComponents with 'client' or 'server' value.
- Every component both on server and client have GudHub and you can create instance of it for your purposes.
- You can add 'to-be-removed' attribute for component, and it will be removed on Server Side, and you will get only inner html of it on client. Be aware, that this feature will break all component functionaity and will remove tag for this component
- If you pass a slug to getGhData or findIds, declare this.pageSlug and assign the slug to it, so replaceText can use it after the component renders.