Skip to content

Commit

Permalink
Fix some grammar and typo issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Hasan-Mir committed Nov 1, 2024
1 parent 51f3ec2 commit abd0c54
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/routes/concepts/control-flow/portal.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: "Portal"
order: 3
---

When an element requires rendering outside of the usual document flow, challenges related to stacking contents and z-index can interfere with the desired intention or look of an application.
When an element requires rendering outside of the usual document flow, challenges related to stacking context and z-index can interfere with the desired intention or look of an application.
`<Portal>` helps with this by putting elements in a different place in the document, bringing an element into the document flow so they can render as expected.

```jsx
Expand Down
2 changes: 1 addition & 1 deletion src/routes/concepts/stores.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Stores
order: 6
---

Similar to [signals](/concepts/signals), stores are a state management primitive.
Similar to [signals](/concepts/signals), stores are a state management primitives.
However, while signals manage a single piece of state, stores create a centralized location to reduce code redundancy.
Within Solid, these stores can spawn a collection of reactive signals, each corresponding to a particular property which can be useful when working with complex state.

Expand Down
2 changes: 1 addition & 1 deletion src/routes/configuration/environment-variables.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function MyComponent() {
## Private Environment Variables
These variables should only be accessed in your backend code, and so it's best to not use `VITE_` prefix for them. Instead, use `process.env` to access them. Depending on the [Nitro preset](https://nitro.unjs.io/deploy) chosen, they'll be made available automatically or they will require an external dependency such as [dotenv](https://www.npmjs.com/package/dotenv).
These variables should only be accessed in your backend code, so it's best not to use the `VITE_` prefix for them. Instead, use `process.env` to access them. Depending on the [Nitro preset](https://nitro.unjs.io/deploy) chosen, they'll be made available automatically or they will require an external dependency such as [dotenv](https://www.npmjs.com/package/dotenv).
```jsx
DB_HOST="somedb://192.110.0"
Expand Down
2 changes: 1 addition & 1 deletion src/routes/configuration/typescript.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ return (
);
```

This approach is similar using the keyed option, but offers an accessor to prevent the recreation of children each time the `when` value changes.
This approach is similar to using the keyed option, but offers an accessor to prevent the recreation of children each time the `when` value changes.

```tsx
return (
Expand Down
2 changes: 1 addition & 1 deletion src/routes/guides/routing-and-navigation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ Wildcard tokens **must** be the last part of the path; `foo/*any/bar` will not c
### Multiple paths

The `Routes` component also supports defining multiple paths using an array.
This allows avoids a route rerendering when switching between two or more locations that it matches:
This avoids a route rerendering when switching between two or more locations that it matches:

```jsx
// Navigating from "/login" to "/register" will not cause the component to re-render
Expand Down
2 changes: 1 addition & 1 deletion src/routes/guides/state-management.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: State management
order: 2
---

State management is process of handling and manipulating data that affects the behavior and presentation of a web application.
State management is the process of handling and manipulating data that affects the behavior and presentation of a web application.
To build interactive and dynamic web applications, state management is a critical aspect of development.
Within Solid, state management is facilitated through the use of reactive primitives.

Expand Down
2 changes: 1 addition & 1 deletion src/routes/guides/styling-components/css-modules.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ These provide a way to encapsulate styles within components, preventing global c

Begin by creating a CSS module file.
Conventionally, these files have a `.module.css` extension, like `style.module.css`.
However, you can also use other other extensions, such as `.scss` and `.sass`.
However, you can also use other extensions, such as `.scss` and `.sass`.

```css
/* styles.module.css */
Expand Down
2 changes: 1 addition & 1 deletion src/routes/reference/basic-reactivity/create-effect.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ queueMicrotask(() => {
// goodbye
```

This delay in first execution is useful because it means an effect defined in a component scope runs after the JSX returned by the component gets added the DOM.
This delay in first execution is useful because it means an effect defined in a component scope runs after the JSX returned by the component gets added to the DOM.
In particular, [refs](/reference/jsx-attributes/ref) will already be set.
Thus you can use an effect to manipulate the DOM manually, call vanilla JS libraries, or other side effects.

Expand Down

0 comments on commit abd0c54

Please sign in to comment.