@kinkajou/kinkajou

0.0.1-alpha.3 • Public • Published

@kinkajou/kinkajou

In 2008 I was working on a web project with a server side rendering technology. I didn't like Java Server Pages (it was a Java project), so I used XML pages, with custom tags inside (X)HTML markup.

Every custom tag was a graphical component, capable of displaying itself on the browser as HTML.

Alt Custom component tag

Nowadays there are a lot of cool client-side libraries which do the same thing. But I wanted a technology for pure standalone client applications, without any server support...

...Kinkajou is a component-based web library which performs this task (it's based on Javascript/JSX syntax and AMD modules support).

Hello World

import { Kinkajou } from '@kinkajou/kinkajou/Kinkajou';

class App extends Kinkajou.Component {

  get message() {
    // Returns the JSX 'message' attribute's value
    return this.getAsString('message');
  }

  render() {
    return <div>{this.message}</div>;
  }

}

Kinkajou.render(<App message="Hello World!" />, document.querySelector('body'));

Demo applications

Package Sidebar

Install

npm i @kinkajou/kinkajou

Weekly Downloads

2

Version

0.0.1-alpha.3

License

MIT

Unpacked Size

117 kB

Total Files

8

Last publish

Collaborators

  • fedro