UNPKG

lmerza-accounts-ui

Version:

Accounts UI component library with React Strangler integration for legacy frontend modernization

2 lines (1 loc) 514 B
import{a as n,r as u}from"./discover.js";import{j as e}from"./jsx-runtime.js";const h="_hello_1a9al_1",p="_title_1a9al_9",_="_input_1a9al_14",l={hello:h,title:p,input:_};function m({name:t="World",onInputChange:i}){const[s,a]=n.useState(t);n.useEffect(()=>{a(t)},[t]);const c=r=>{const o=r.target.value;a(o),i?.(o)};return e.jsxs("div",{className:l.hello,children:[e.jsxs("h3",{className:l.title,children:["Hello from React, ",s,"!"]}),e.jsx("input",{value:s,onChange:c,className:l.input})]})}u("hello-widget",m);