Skip to content

Commit 4fb5329

Browse files
authored
Update basics.mdx (#674)
1 parent b0a5b06 commit 4fb5329

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/routes/concepts/components/basics.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ function MyComponent() {
107107
```
108108

109109
When this component is rendered into the DOM, the function body is executed.
110-
This includes creating the `count` signal and the `console.log(count())` statement, which will log the current value of `count` to the console.
110+
This includes creating the `count` signal and executing the `console.log(count())` statement, which will log the current value of `count` to the console.
111111
In addition, the component's JSX is returned, which will be rendered into the DOM.
112112

113113
After the component is rendered, the `console.log` statement will not be executed again, even if the component's state changes.
@@ -121,7 +121,7 @@ In essence, Solid splits the concerns:
121121
### Conditional rendering
122122

123123
To display different content based on state or other criteria, you can use conditional rendering.
124-
Given that the component function is only executed once, conditional statements must be placed within the function body.
124+
Given that the component function is only executed once, conditional statements must be placed within the return statement.
125125
This design ensures that conditional paths are clear and immediately understood.
126126

127127
```tsx

0 commit comments

Comments
 (0)