potatejs 0.12.2 → 0.14.0

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
@@ -76,7 +76,7 @@ const App = props => {
76
76
  }
77
77
 
78
78
  const root = Potate.createRoot(document.querySelector('#app'))
79
- root.render(Potate.createElement(App)) // ✖ root.render(<App/>) Please avoid JSX at the root
79
+ root.render(<App/>)
80
80
 
81
81
  ```
82
82
 
@@ -130,7 +130,7 @@ export default function App(props) {
130
130
  }
131
131
 
132
132
  const root = Potate.createRoot(document.querySelector('#app'))
133
- root.render(Potate.createElement(App)) // ✖ root.render(<App/>) Please avoid JSX at the root
133
+ root.render(<App/>)
134
134
 
135
135
  ```
136
136
 
@@ -285,6 +285,7 @@ For the above example, the Brahmos output is 685 bytes, compared to 824 bytes fr
285
285
  - [x] `use(resource)` API
286
286
  - [x] [watch(resource) API](docs/API.md)
287
287
  - [x] React 19 style root management
288
+ - [x] Allow using class instead of className
288
289
  - [ ] `use(context)` API
289
290
  - [ ] [use(store) API](https://react.dev/blog/2025/04/23/react-labs-view-transitions-activity-and-more#concurrent-stores)
290
291
  - [ ] [ref as a prop](https://react.dev/blog/2024/12/05/react-19#ref-as-a-prop)