From f751e851ef62434b84e0f6ff14d73ee8340db8d4 Mon Sep 17 00:00:00 2001 From: Hayleigh Thompson Date: Fri, 14 Jun 2024 09:31:36 +0100 Subject: :memo: Add a hint on the difference between attributes and properties. --- src/lustre/attribute.gleam | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') 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) -- cgit v1.2.3