lilact 0.23.1 → 0.24.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 +17 -1
- package/dist/lilact.development.js +485 -461
- package/dist/lilact.development.js.map +4 -4
- package/dist/lilact.development.min.js +24 -24
- package/dist/lilact.development.min.js.map +4 -4
- package/dist/lilact.production.min.js +25 -25
- package/docs/assets/hierarchy.js +1 -1
- package/docs/classes/accessories.ErrorBoundary.html +8 -8
- package/docs/classes/accessories.Suspense.html +7 -7
- package/docs/classes/components.Component.html +11 -11
- package/docs/classes/components.HTMLComponent.html +11 -11
- package/docs/classes/components.RootComponent.html +11 -11
- package/docs/functions/components.cloneComponent.html +1 -1
- package/docs/functions/components.createComponent.html +1 -1
- package/docs/functions/components.createPortal.html +1 -1
- package/docs/functions/components.createRoot.html +1 -1
- package/docs/functions/components.memo.html +1 -1
- package/docs/functions/components.render.html +1 -1
- package/docs/functions/timers.timeoutPromise.html +4 -4
- package/docs/hierarchy.html +1 -1
- package/docs/index.html +18 -1
- package/docs/static/demos/cloneelement.jsx +6 -0
- package/docs/static/demos/lazy.jsx +1 -1
- package/docs/static/demos/legacy-context.jsx +0 -7
- package/docs/static/index.html +2 -2
- package/docs/static/lilact.development.js +485 -461
- package/docs/static/lilact.development.js.map +4 -4
- package/docs/static/lilact.development.min.js +24 -24
- package/docs/static/lilact.development.min.js.map +4 -4
- package/docs/static/lilact.production.min.js +25 -25
- package/docs/variables/components.cloneElement.html +1 -1
- package/examples/demos/cloneelement.jsx +6 -0
- package/examples/demos/lazy.jsx +1 -1
- package/examples/demos/legacy-context.jsx +0 -7
- package/examples/index.html +2 -2
- package/examples/lilact.development.js +485 -461
- package/examples/lilact.development.js.map +4 -4
- package/examples/lilact.development.min.js +24 -24
- package/examples/lilact.development.min.js.map +4 -4
- package/examples/lilact.production.min.js +25 -25
- package/package.json +1 -1
- package/src/components.jsx +11 -4
- package/src/lilact.jsx +1 -1
- package/src/proptypes.jsx +38 -0
- package/impexptest.js +0 -51
package/README.md
CHANGED
|
@@ -175,7 +175,7 @@ This is not the only way to use it—inside Node projects you can use standard m
|
|
|
175
175
|
|
|
176
176
|
### Node.js example
|
|
177
177
|
|
|
178
|
-
```
|
|
178
|
+
```jsx
|
|
179
179
|
import { render } from "lilact";
|
|
180
180
|
|
|
181
181
|
function App() {
|
|
@@ -212,6 +212,22 @@ render(<App/>, document.body);
|
|
|
212
212
|
|
|
213
213
|
## Learn More / Examples / Beta Status
|
|
214
214
|
|
|
215
|
+
`Lilact` tries to mimic `React` API as close as possible. So the [Official React API Reference](https://react.dev/reference/react) can be used as a perfect resource. Most of its examples would work in `Lilact` with just substituting import source "react" with "lilact"! You can even do:
|
|
216
|
+
|
|
217
|
+
```jsx
|
|
218
|
+
import React from "lilact"
|
|
219
|
+
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
And things will probably work just fine. For `redux` and `emotion` just import as you would do, `Lilact` will fix the references automatically:
|
|
223
|
+
|
|
224
|
+
```jsx
|
|
225
|
+
import redux from "redux";
|
|
226
|
+
import emotion from "@emotion/css";
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
Some functions are not implemented in `Lilact`, mostly because `Lilact` is only client side and doesn't need server side API. Besides that, a few missing hooks and components like `Profiler` or `StrictMode` exist, which will be implemented in the future. There are also a few differences that are mentioned in the `Lilact` documentation.
|
|
230
|
+
|
|
215
231
|
To know more about using `Lilact`, see the included examples:
|
|
216
232
|
[Lilact Examples](https://arashkazemi.github.io/lilact/static)
|
|
217
233
|
|