@hyper-ui/core
TypeScript icon, indicating that this package has built-in type declarations

0.18.0 • Public • Published

hyper-ui

A lightweight front-end UI lib.

Links

Hello World

// Define a component called `Greeting`
const Greeting = HUI.define('Greeting', {
    // Define the renderer
    render(props) {
        // Render a simple heading
        return HUI('h1', { style: { textAlign: 'center' } }, [
            'Hello,',
            props.target,
            '!'
        ]);
    }
});
// Render the app
HUI.render(
    // Create a greeting instance
    HUI(Greeting, { target: 'world' })
);

/@hyper-ui/core/

    Package Sidebar

    Install

    npm i @hyper-ui/core

    Weekly Downloads

    2

    Version

    0.18.0

    License

    MIT

    Unpacked Size

    100 kB

    Total Files

    30

    Last publish

    Collaborators

    • 3h