Skip to content

Latest commit

 

History

History
31 lines (26 loc) · 701 Bytes

README.md

File metadata and controls

31 lines (26 loc) · 701 Bytes

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' })
);