diff --git a/documentation/docs/01-introduction/xx-props.md b/documentation/docs/01-introduction/xx-props.md index 54b5ba6a1c..5266c635e8 100644 --- a/documentation/docs/01-introduction/xx-props.md +++ b/documentation/docs/01-introduction/xx-props.md @@ -43,51 +43,11 @@ You can specify a fallback value for a prop. It will be used if the component's - - + + ``` -Deep nesting refers to having components nested within other components across multiple levels. In this setup, props can be passed from parent to child components through several layers. - -```svelte - - - - -``` - -```svelte - - - -

First: {count}

- -``` - -```svelte - - - -

Second: {count}

- -``` - -```svelte - - - -

Third: {count}

-``` - To get all properties, use rest syntax: ```svelte diff --git a/documentation/docs/03-template-syntax/01-basic-markup.md b/documentation/docs/03-template-syntax/01-basic-markup.md index d4ba6691dd..86c1f7ba79 100644 --- a/documentation/docs/03-template-syntax/01-basic-markup.md +++ b/documentation/docs/03-template-syntax/01-basic-markup.md @@ -188,17 +188,16 @@ When using {expression} inside markup, Svelte automatically converts the value t let emptyStr = ""; let num = 1; let bool = false; - let obj = { key: "value" }; - let objToStr = obj.toString(); + let obj1 = { key: "value" }; + let obj2 = { toString: () => "str" }; let empty = undefined; let nul = null; -

{emptyStr}

{num}

{bool}

-

{obj}

-

{objToStr}

+

{obj1}

+

{obj2}

{empty}

{nul}

```