aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHayleigh Thompson <me@hayleigh.dev>2024-06-14 09:31:36 +0100
committerHayleigh Thompson <me@hayleigh.dev>2024-06-14 09:31:36 +0100
commitf751e851ef62434b84e0f6ff14d73ee8340db8d4 (patch)
treed470463dbf61f839584a589657dce22a16f9f988 /src
parentd08d0df7934e2299172aac434346ec6e2649cd6b (diff)
downloadlustre-f751e851ef62434b84e0f6ff14d73ee8340db8d4.tar.gz
lustre-f751e851ef62434b84e0f6ff14d73ee8340db8d4.zip
:memo: Add a hint on the difference between attributes and properties.
Diffstat (limited to 'src')
-rw-r--r--src/lustre/attribute.gleam6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lustre/attribute.gleam b/src/lustre/attribute.gleam
index d8f1cc3..15f322d 100644
--- a/src/lustre/attribute.gleam
+++ b/src/lustre/attribute.gleam
@@ -21,7 +21,8 @@ pub type Attribute(msg) =
/// in JavaScript. Attributes will be rendered when calling [`element.to_string`](./element.html#to_string).
///
/// **Note**: there is a subtle difference between attributes and properties. You
-/// can read more about the implications of this [here](https://javascript.info/dom-attributes-and-properties).
+/// can read more about the implications of this
+/// [here](https://github.com/lustre-labs/lustre/blob/main/pages/hints/attributes-vs-properties.md).
///
pub fn attribute(name: String, value: String) -> Attribute(msg) {
Attribute(name, dynamic.from(value), as_property: False)
@@ -32,7 +33,8 @@ pub fn attribute(name: String, value: String) -> Attribute(msg) {
/// [`element.to_string`](./element.html#to_string).
///
/// **Note**: there is a subtle difference between attributes and properties. You
-/// can read more about the implications of this [here](https://javascript.info/dom-attributes-and-properties).
+/// can read more about the implications of this
+/// [here](https://github.com/lustre-labs/lustre/blob/main/pages/hints/attributes-vs-properties.md).
///
pub fn property(name: String, value: any) -> Attribute(msg) {
Attribute(name, dynamic.from(value), as_property: True)