reaction-hooks 1.0.25 → 1.0.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/.aiignore +12 -0
  2. package/.swcrc +4 -3
  3. package/example.js +379 -2114
  4. package/lib/example/hooksApp/constants.js +2 -2
  5. package/lib/example/hooksApp/preamble.js +2 -2
  6. package/lib/example/hooksApp/useContext/button/link/close.js +14 -101
  7. package/lib/example/hooksApp/useContext/button/link/open.js +14 -101
  8. package/lib/example/hooksApp/useContext/component.js +9 -97
  9. package/lib/example/hooksApp/useContext/constants.js +4 -4
  10. package/lib/example/hooksApp/useContext/div/gotIt.js +18 -105
  11. package/lib/example/hooksApp/useContext/header/gotIt.js +18 -105
  12. package/lib/example/hooksApp/useContext/section/gotIt.js +39 -154
  13. package/lib/example/hooksApp/useContext/span/gotIt.js +4 -4
  14. package/lib/example/hooksApp/useEffects/article/home.js +8 -105
  15. package/lib/example/hooksApp/useEffects/article/settings.js +8 -105
  16. package/lib/example/hooksApp/useEffects/article.js +13 -114
  17. package/lib/example/hooksApp/useEffects/button/home.js +5 -83
  18. package/lib/example/hooksApp/useEffects/button/settings.js +5 -83
  19. package/lib/example/hooksApp/useEffects/button.js +14 -112
  20. package/lib/example/hooksApp/useEffects/component.js +9 -97
  21. package/lib/example/hooksApp/useEffects/constants.js +4 -4
  22. package/lib/example/hooksApp/useEffects/navigation/primary.js +5 -7
  23. package/lib/example/hooksApp/useEffects/section/articles.js +5 -7
  24. package/lib/example/hooksApp/useEffects/section/main.js +19 -109
  25. package/lib/example/hooksApp/useState/component.js +10 -142
  26. package/lib/example/hooksApp/useState/createClass.js +10 -58
  27. package/lib/example/hooksApp/useState/function.js +8 -56
  28. package/lib/example/hooksApp/view.js +12 -96
  29. package/lib/example/hooksApp.js +5 -5
  30. package/lib/example.js +2 -2
  31. package/lib/hooks.js +20 -41
  32. package/lib/index.js +2 -2
  33. package/package.json +1 -1
package/.aiignore ADDED
@@ -0,0 +1,12 @@
1
+ .idea
2
+ .DS_Store
3
+ node_modules
4
+ npm-debug.log
5
+ package-lock.json
6
+
7
+ .git
8
+ .swcrc
9
+ .gitignore
10
+ lib
11
+ license.txt
12
+ example.js
package/.swcrc CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
+ "module": {
3
+ "type": "commonjs"
4
+ },
2
5
  "jsc": {
6
+ "target": "es2022",
3
7
  "parser": {
4
8
  "syntax": "ecmascript",
5
9
  "jsx": true
6
10
  }
7
- },
8
- "module": {
9
- "type": "commonjs"
10
11
  }
11
12
  }