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.
Files changed (45) hide show
  1. package/README.md +17 -1
  2. package/dist/lilact.development.js +485 -461
  3. package/dist/lilact.development.js.map +4 -4
  4. package/dist/lilact.development.min.js +24 -24
  5. package/dist/lilact.development.min.js.map +4 -4
  6. package/dist/lilact.production.min.js +25 -25
  7. package/docs/assets/hierarchy.js +1 -1
  8. package/docs/classes/accessories.ErrorBoundary.html +8 -8
  9. package/docs/classes/accessories.Suspense.html +7 -7
  10. package/docs/classes/components.Component.html +11 -11
  11. package/docs/classes/components.HTMLComponent.html +11 -11
  12. package/docs/classes/components.RootComponent.html +11 -11
  13. package/docs/functions/components.cloneComponent.html +1 -1
  14. package/docs/functions/components.createComponent.html +1 -1
  15. package/docs/functions/components.createPortal.html +1 -1
  16. package/docs/functions/components.createRoot.html +1 -1
  17. package/docs/functions/components.memo.html +1 -1
  18. package/docs/functions/components.render.html +1 -1
  19. package/docs/functions/timers.timeoutPromise.html +4 -4
  20. package/docs/hierarchy.html +1 -1
  21. package/docs/index.html +18 -1
  22. package/docs/static/demos/cloneelement.jsx +6 -0
  23. package/docs/static/demos/lazy.jsx +1 -1
  24. package/docs/static/demos/legacy-context.jsx +0 -7
  25. package/docs/static/index.html +2 -2
  26. package/docs/static/lilact.development.js +485 -461
  27. package/docs/static/lilact.development.js.map +4 -4
  28. package/docs/static/lilact.development.min.js +24 -24
  29. package/docs/static/lilact.development.min.js.map +4 -4
  30. package/docs/static/lilact.production.min.js +25 -25
  31. package/docs/variables/components.cloneElement.html +1 -1
  32. package/examples/demos/cloneelement.jsx +6 -0
  33. package/examples/demos/lazy.jsx +1 -1
  34. package/examples/demos/legacy-context.jsx +0 -7
  35. package/examples/index.html +2 -2
  36. package/examples/lilact.development.js +485 -461
  37. package/examples/lilact.development.js.map +4 -4
  38. package/examples/lilact.development.min.js +24 -24
  39. package/examples/lilact.development.min.js.map +4 -4
  40. package/examples/lilact.production.min.js +25 -25
  41. package/package.json +1 -1
  42. package/src/components.jsx +11 -4
  43. package/src/lilact.jsx +1 -1
  44. package/src/proptypes.jsx +38 -0
  45. 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
- ```js
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