diff options
author | 2021-06-24 22:40:29 +0000 | |
---|---|---|
committer | 2021-06-24 22:40:29 +0000 | |
commit | 02ecaf3d3364b910f08f15eeb0532285743b7efb (patch) | |
tree | 4f14ba18596e0574ff5ffd11a63fe029dd3cc645 /examples/astro-nanostores/src/components/AdminsReact.jsx | |
parent | 81c01d121ff64210882eb491143266f35cead895 (diff) | |
download | astro-02ecaf3d3364b910f08f15eeb0532285743b7efb.tar.gz astro-02ecaf3d3364b910f08f15eeb0532285743b7efb.tar.zst astro-02ecaf3d3364b910f08f15eeb0532285743b7efb.zip |
[ci] yarn format
Diffstat (limited to 'examples/astro-nanostores/src/components/AdminsReact.jsx')
-rw-r--r-- | examples/astro-nanostores/src/components/AdminsReact.jsx | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/examples/astro-nanostores/src/components/AdminsReact.jsx b/examples/astro-nanostores/src/components/AdminsReact.jsx index 4feb8c0fd..a03df1f47 100644 --- a/examples/astro-nanostores/src/components/AdminsReact.jsx +++ b/examples/astro-nanostores/src/components/AdminsReact.jsx @@ -1,7 +1,7 @@ -import React from 'react' -import { useStore } from 'nanostores/react' +import React from 'react'; +import { useStore } from 'nanostores/react'; -import { admins } from '../store/admins.js' +import { admins } from '../store/admins.js'; import { counter, increaseCounter, decreaseCounter } from '../store/counter.js'; const AdminsReact = () => { @@ -11,7 +11,9 @@ const AdminsReact = () => { <> <h1>React</h1> <ul> - {list.map(user => <li key={user.name}>{JSON.stringify(user, null, 2)}</li>)} + {list.map((user) => ( + <li key={user.name}>{JSON.stringify(user, null, 2)}</li> + ))} </ul> <div> <h3>Counter</h3> @@ -22,6 +24,6 @@ const AdminsReact = () => { <br /> </> ); -} +}; -export default AdminsReact;
\ No newline at end of file +export default AdminsReact; |