@opennetwork/conventions

2.0.0 • Public • Published

Conventions

UI

All visual state will be represented as jsx, this allows flexibility around the target runtime

export const Hello = <>
  <title>Hello!</title>
  <header>Hello!</header>
</>

UI Components can be defined using a function, this allows information to be serialized into a visual representation

export interface Article {
   content: unknown
   title: unknown
}

export function DisplayArticle(this: Article) {
  return <>
    <title>{this.title}</title>
    <article>
      <header>{this.title}</header>
      {this.content}
    </article>
  </>
}

Readme

Keywords

none

Package Sidebar

Install

npm i @opennetwork/conventions

Weekly Downloads

0

Version

2.0.0

License

MIT

Unpacked Size

174 kB

Total Files

128

Last publish

Collaborators

  • virtualstate-user
  • shipper