Reactive HyperText Markup Language
npm install @rhtml/graphql#### Installation
``bash`
npm i @rhtml/graphql
#### Usage
`typescript
import { LitElement, Component, html } from '@rxdi/lit-html';
import { BehaviorSubject } from 'rxjs';
import { delay } from 'rxjs/operators';
import '@rhtml/components';
import '@rhtml/operators';
import '@rhtml/graphql';
interface State { counter: number }
@Component({
selector: 'r-html-view',
template(this: RHtmlViewComponent) {
return html
}>
${appUpdated}
setState: (s: NotificationState) => void
) => html}
@click=${() => {
setState({
data: {
notifications: {
appUpdated: Number(appUpdated) + Number(appUpdated)
}
}
});
}}
>
Increment Subscriptions State x2
(will be overriten when server emit new state)
>
;
}
})
export class RHtmlViewComponent extends LitElement {}
``