Package Exports
- @hyper-ui/core
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@hyper-ui/core) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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' })
);