Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mefengl/code-note
https://github.com/mefengl/code-note
Last synced: 10 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/mefengl/code-note
- Owner: mefengl
- License: mit
- Created: 2023-05-13T14:19:17.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-05-26T03:12:20.000Z (over 1 year ago)
- Last Synced: 2024-10-30T10:15:36.160Z (about 2 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}))
```