what-core 0.5.6 → 0.6.1

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.
package/README.md CHANGED
@@ -64,15 +64,17 @@ useEffect(() => {
64
64
 
65
65
  ## Components
66
66
 
67
- ```js
68
- import { h, mount, Fragment, memo, lazy, Suspense, ErrorBoundary, Show, For } from 'what-core';
67
+ ```jsx
68
+ import { mount, signal } from 'what-core';
69
69
 
70
70
  function Counter() {
71
71
  const count = signal(0);
72
- return h('button', { onclick: () => count.set(c => c + 1) }, () => count());
72
+ return (
73
+ <button onClick={() => count.set(c => c + 1)}>{count()}</button>
74
+ );
73
75
  }
74
76
 
75
- mount(h(Counter), '#app');
77
+ mount(<Counter />, '#app');
76
78
  ```
77
79
 
78
80
  ## Additional Modules
@@ -88,7 +90,7 @@ mount(h(Counter), '#app');
88
90
 
89
91
  **Reactivity** -- `signal`, `computed`, `effect`, `batch`, `untrack`, `flushSync`, `createRoot`
90
92
 
91
- **Rendering** -- `h`, `Fragment`, `html`, `mount`, `template`, `insert`, `spread`, `delegateEvents`
93
+ **Rendering** -- `Fragment`, `html`, `mount`, `template`, `insert`, `spread`, `delegateEvents`
92
94
 
93
95
  **Hooks** -- `useState`, `useSignal`, `useComputed`, `useEffect`, `useMemo`, `useCallback`, `useRef`, `useContext`, `useReducer`, `createContext`, `onMount`, `onCleanup`, `createResource`
94
96
 
@@ -111,7 +113,7 @@ mount(h(Counter), '#app');
111
113
  ## Links
112
114
 
113
115
  - [Documentation](https://whatfw.com)
114
- - [GitHub](https://github.com/CelsianJs/whatfw)
116
+ - [GitHub](https://github.com/CelsianJs/what-framework)
115
117
  - [Benchmarks](https://benchmarks.whatfw.com)
116
118
 
117
119
  ## License
@@ -24,7 +24,7 @@ return MemoWrapper;
24
24
  }
25
25
  let _getCurrentComponent = null;
26
26
  export function _injectGetCurrentComponent(fn) { _getCurrentComponent = fn; }
27
- function shallowEqual(a, b) {
27
+ export function shallowEqual(a, b) {
28
28
  if (a === b) return true;
29
29
  const keysA = Object.keys(a);
30
30
  const keysB = Object.keys(b);