1
0
mirror of https://github.com/helix-editor/helix synced 2026-07-27 11:10:52 +02:00
Files
Blaž Hrastnik cd6a852c9e Add indent corpus
This will be used by the cargo indent-check xtask to validate queries,
similar to the existing indent tests in helix-core.
2026-06-07 21:29:01 +09:00

44 lines
744 B
React

function App() {
return (
<div className="container">
<Header title="hello" />
<ul>
{items.map((item) => (
<li key={item.id}>{item.name}</li>
))}
</ul>
<button onClick={() => handleClick()}>Click</button>
</div>
);
}
const value = store
.getState()
.filter((x) => x.active);
function List({ items, show }) {
return (
<>
{show && <Banner />}
{items.map((item) => (
<Item key={item.id} value={item.value} />
))}
<Footer
copyright="2024"
links={links}
/>
</>
);
}
function Card({ id, title }) {
return (
<article
className="card"
data-id={id}
>
<h2>{title}</h2>
</article>
);
}