https://github.com/mefengl/code-note
https://github.com/mefengl/code-note
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mefengl/code-note
- Owner: mefengl
- License: mit
- Created: 2023-05-13T14:19:17.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-26T03:12:20.000Z (about 2 years ago)
- Last Synced: 2025-02-10T06:41:22.949Z (5 months ago)
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# code-note
seperate code by ui is much more easier than by logic
extract component is much more easier than extract hook
array + function is better than object
```javascript
const peoples = [
{name: 'a', age: 1},
{name: 'b', age: 2},
{name: 'c', age: 3},
]const peoples = [
['a', 1],
['b', 2],
['c', 3],
].map(([name, age]) => ({name, age}))
```