mirror of
https://github.com/hanzoai/prettier.git
synced 2026-09-24 17:02:04 +00:00
12 lines
235 B
JavaScript
12 lines
235 B
JavaScript
const Profile = view.with({ name: (state) => state.name }).as((props) => (
|
|
<div>
|
|
<h1>Hello, {props.name}</h1>
|
|
</div>
|
|
))
|
|
|
|
const Profile2 = view.with({ name }).as((props) => (
|
|
<div>
|
|
<h1>Hello, {props.name}</h1>
|
|
</div>
|
|
))
|