@hyunjin/jsx
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

@hyunjin/jsx

JSX is a JavaScript XML syntax extension that allows you to write HTML-like code in JavaScript. This package provides a tagged template literal that converts JSX into a InMemory DOM.

Installation

npm install @hyunjin/jsx

Example

import jsx from '@hyunjin/jsx';

const $dom = jsx`
  <button onClick=${() => console.log('hello world')}>
    <span>Click me!</span>
  </button>
`;

Reference

Readme

Keywords

Package Sidebar

Install

npm i @hyunjin/jsx

Weekly Downloads

0

Version

0.2.0

License

none

Unpacked Size

17.3 kB

Total Files

7

Last publish

Collaborators

  • leehyunjin