@gudhub/gh-component

2.0.6 • Public • Published

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 <script> tag for this component

/@gudhub/gh-component/

    Package Sidebar

    Install

    npm i @gudhub/gh-component

    Weekly Downloads

    16

    Version

    2.0.6

    License

    ISC

    Unpacked Size

    35.7 kB

    Total Files

    9

    Last publish

    Collaborators

    • gudhub