Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

deku

Package Overview
Dependencies
Maintainers
1
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

deku

Create view components using a virtual DOM

  • 0.0.12
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
538
increased by16.96%
Maintainers
1
Weekly downloads
 
Created
Source

Deku

npm version

A library for creating UI components using a virtual DOM.

  • It's small and modular. Roughly 8kb minified.
  • Supports npm, duo, and bower.
  • It has a beautiful, simple API for defining components.
  • Uses a virtual DOM and diffing to run updates.
  • It only supports evergreen browsers.
  • Components can be used without the library.
  • Components can be rendered to a string for server-side rendering.
  • Easily testable components.
  • Handles all event delegation for you without virtual events.
  • Batched and optimized updates using requestAnimationFrame.
var {component,dom} = require('deku');

var Button = component({
  onClick() {
    this.setState({ clicked: true });
  },
  render(props, state) {
    return dom('button', { onClick: this.onClick }, [props.text]);
  }
});

Button.render(document.body, {
  text: 'Click Me!'
});

Getting Started

Download

npm install deku
bower install deku

Using Duo:

var deku = require('segmentio/deku');

Or download and use them manually:

Build Status

Sauce Test Status

License

MIT

FAQs

Package last updated on 20 Jan 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc