8000 Emmy.js · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
@emmyjs

Emmy.js

Emmy.js

npm NPM tests
A tiny simple front-end library for building web applications using functional web components.

Why Emmy.js?

Emmy.js is a tiny simple front-end library for building web applications using functional web components. It is based on the Web Components standard. It is specially designed for building web applications with server-side frameworks like Ruby on Rails, Django, Laravel, etc.


Experimental npx create-emmy

create-emmy is a command line tool that allows you to create a new emmy.js project. It is still in an experimental phase, so it is not recommended to use it in production, but you can try it out and give us your feedback. More info

Example: Counter

import { load, html } from 'emmy-dom'

const counter = ({ el }) => {
  const [count, setCount] = el.useState(0)

  el.useEffect(() => {
    el.querySelector('#increment').addEventListener('click', () => {
      setCount(count() + 1)
    })
  }, [])

  return () => html`
    <div>
      <h1>Count: ${count()}</h1>
      <button id='increment'>+</button>
    </div>
  `
}

load(counter, 'Counter')

Pinned Loading

  1. emmy-dom emmy-dom Public

    A tiny simple way for building web user interfaces

    TypeScript 4

  2. create-emmy create-emmy Public

    An Emmy.js applications generator

    JavaScript

Repositories

Showing 4 of 4 repositories

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…

0