Comparing version 0.3.0 to 0.3.1
{ | ||
"name": "uland", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"main": "./cjs/index.js", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -43,2 +43,15 @@ # 🦄 <em>µ</em>land | ||
In version 0.3, *µland* can return conditional templates. | ||
```js | ||
const Rando = Component(url => { | ||
const {data, error} = useSWR(url, fetcher); | ||
if (error) return html`<div>failed to load</div>`; | ||
if (!data) return html`<div>loading...</div>`; | ||
return html`<div>${data.title}</div>`; | ||
}); | ||
``` | ||
Once proven to be useful and robust, this feature will be ported to *neverland* too, otherwise these are basically the same. | ||
**Technically** speaking, just the following one: | ||
@@ -45,0 +58,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
146681
70