nano-jsx
Version:
SSR first, lightweight 1kB JSX library.
28 lines • 1.01 kB
TypeScript
import { Component } from '../component.js';
import { Store } from '../store.js';
import * as Router from '../components/router.js';
declare const _default: {
Component: typeof Component;
Fragment: (props: any) => any;
Router: typeof Router;
Store: typeof Store;
createContext: (ctx: any) => {
Provider: (props: any) => any;
Consumer: (props: any) => {
component: any;
props: any;
};
get: () => any;
set: (ctx: any) => any;
};
h: (tagNameOrComponent: any, props?: any, ...children: any[]) => any;
jsx: (statics: TemplateStringsArray, ...rest: any[]) => any;
render: (component: any, parent?: HTMLElement | null, removeChildNodes?: boolean) => any;
task: (task: () => void) => NodeJS.Timeout;
tick: (cb: Function) => any;
withStyles: any;
};
export default _default;
export { printVersion } from '../helpers.js';
export { VERSION } from '../version.js';
//# sourceMappingURL=bundle.slim.d.ts.map