# tiny-jsx **Repository Path**: ameegle/tiny-jsx ## Basic Information - **Project Name**: tiny-jsx - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-06-02 - **Last Updated**: 2024-07-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # TinyJSX TinyJSX is a lightweight UI JavaScript library for developing user interfaces using functional components.     GZip packages sizes [](https://unpkg.com/tiny-jsx/tiny-jsx.min.js.gz) [](https://unpkg.com/tiny-jsx/tiny-jsx-hooks.min.js.gz) [](https://unpkg.com/tiny-jsx/tiny-jsx-dom.min.js.gz) [](https://unpkg.com/tiny-jsx/tiny-jsx-router.min.js.gz) Brotli packages sizes [](https://unpkg.com/tiny-jsx/tiny-jsx.min.js.br) [](https://unpkg.com/tiny-jsx/tiny-jsx-hooks.min.js.br) [](https://unpkg.com/tiny-jsx/tiny-jsx-dom.min.js.br) [](https://unpkg.com/tiny-jsx/tiny-jsx-router.min.js.br) --- ## Usage TinyJSX exposes an API which mimics the recent React Hooks implementation but is really small. > TinyJSX supports **only** functional components. ```jsx import TinyJSX from 'tiny-jsx'; import { render } from 'tiny-jsx/dom'; import useEffect from 'tiny-jsx/hooks/useEffect'; import useState from 'tiny-jsx/hooks/useState'; function Clock () { const [tick, setTick] = useState(0); useEffect(() => { const interval = setInterval(() => { setTick(tick + 1); }, 1000); return () => clearInterval(interval); }, [tick]); return (