mirror of
https://github.com/helix-editor/helix
synced 2026-07-27 11:10:52 +02:00
cd6a852c9e
This will be used by the cargo indent-check xtask to validate queries, similar to the existing indent tests in helix-core.
44 lines
744 B
React
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>
|
|
);
|
|
}
|