Skip to content

Commit c296852

Browse files
authored
fix language mistakes (#1471)
1 parent c0d94d5 commit c296852

13 files changed

Lines changed: 21 additions & 21 deletions

File tree

src/routes/concepts/understanding-jsx.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const element = <h1>I'm JSX!!</h1>;
3131
3232
It offers a distinct advantage, however: to copy/paste solutions from resources like Stack Overflow; and to allow direct usage of templates from design tools.
3333
Solid sets itself apart by using JSX immediately as it returns [DOM](https://developer.mozilla.org/en-US/docs/Web/API/Document_Object_Model/Introduction) elements.
34-
This lets you use dynamic expressions within your HTML by allowing variables and functions to be references with the use of curly braces (`{ }`):
34+
This lets you use dynamic expressions within your HTML by allowing variables and functions to be referenced with the use of curly braces (`{ }`):
3535
3636
```jsx
3737
const Component = () => {
@@ -54,7 +54,7 @@ This updates only the necessary parts of the DOM when changes occur in the under
5454
5555
### Return a single root element
5656
57-
Where HTML lets you have disconnected tags at the top level, JSX requires that a component to return a single root element.
57+
Where HTML lets you have disconnected tags at the top level, JSX requires that a component return a single root element.
5858
5959
:::advanced
6060
When working with JSX, parts of your code are translated into structured HTML that is placed at the start of the file.

src/routes/guides/deployment-options/netlify.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ For detailed guidance on build procedures, deployment options, and the range of
2323

2424
## Using the Netlify web interface
2525

26-
1. Begin by navigating to [Netlify's website](https://app.netlify.com/) and logging in or creating a new Netlify.
27-
Once logged in, you will be take to your dashboard. Click the `New site from Git` button to start a new project.
26+
1. Begin by navigating to [Netlify's website](https://app.netlify.com/) and logging in or creating a new Netlify account.
27+
Once logged in, you will be taken to your dashboard. Click the `New site from Git` button to start a new project.
2828

2929
<EraserLink
3030
href="https://app.eraser.io/workspace/w9y9PNVjwSqDCEPNTEoe?elements=VMzcD7r0uwLqgogfyqiZZg"

src/routes/guides/deployment-options/zerops.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ services:
8787
8888
## Add zerops.yml to your repository
8989
90-
The `zerops.yml` configuration file is used to tell Zerops how to build and run your application, it should be placed to the root of your appplication's repository.
90+
The `zerops.yml` configuration file is used to tell Zerops how to build and run your application, it should be placed at the root of your appplication's repository.
9191

9292
Example for **SSR (Server-Side Rendering)** Apps:
9393

src/routes/guides/testing.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export const Counter = () => {
118118

119119
In the `test.jsx` file, [the `render` call from `@solidjs/testing-library`](https://testing-library.com/docs/solid-testing-library/api#render) is used to render the component and supply the props and context.
120120
To mimic a user interaction, `@testing-library/user-event` is used.
121-
The [`expect` function provided by `vitest`](https://vitest.dev/api/expect.html) is extended with a [`.ToHaveTextContent("content")` matcher from `@testing-library/jest-dom`](https://github.com/testing-library/jest-dom?tab=readme-ov-file#tohavetextcontent) to supply what the expected behavior is for this component.
121+
The [`expect` function provided by `vitest`](https://vitest.dev/api/expect.html) is extended with a [`.toHaveTextContent("content")` matcher from `@testing-library/jest-dom`](https://github.com/testing-library/jest-dom?tab=readme-ov-file#tohavetextcontent) to supply what the expected behavior is for this component.
122122

123123
To run this test, use the following command:
124124

@@ -211,7 +211,7 @@ If possible, try to select for accessible attributes (roughly in the following o
211211
- **DisplayValue**: form elements showing the given value (e.g. select elements)
212212
- **AltText**: images with alt text
213213
- **Title**: HTML elements with the `title` attribute or SVGs with the `<title>` tag containing the given text
214-
- **TestId**: queries by the `data-testid` attribute; a different data attribute can be setup via `configure({testIdAttribute: 'data-my-test-attribute'})`; TestId-queries are _not accessible_, so use them only as a last resort.
214+
- **TestId**: queries by the `data-testid` attribute; a different data attribute can be set up via `configure({testIdAttribute: 'data-my-test-attribute'})`; TestId-queries are _not accessible_, so use them only as a last resort.
215215

216216
For more information, check the [testing-library documentation](https://testing-library.com/docs/queries/about).
217217

@@ -335,7 +335,7 @@ describe("pre-login: sign-in", () => {
335335
336336
#### Validating assertions
337337
338-
`vitest` comes with the `expect` function to facilitate assertions that works like:
338+
`vitest` comes with the `expect` function to facilitate assertions that work like:
339339
340340
```tsx frame="none"
341341
expect(subject)[assertion](value);
@@ -412,7 +412,7 @@ To avoid this, there is a [`renderHook` utility](https://testing-library.com/doc
412412
```ts frame="none"
413413
const renderResult = renderHook(hook, {
414414
initialProps, // an array with arguments being supplied to the hook
415-
wrapper, // same as the wrapper optionss for `render`
415+
wrapper, // same as the wrapper options for `render`
416416
});
417417
const {
418418
result, // return value of the hook (mutable, destructuring fixes it)

src/routes/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ It prioritizes a simple and predictable development experience, making it a grea
2727

2828
As a JavaScript framework, Solid embraces reactivity and fine-grained updates.
2929

30-
Reactivity, in programming, refers to an applications' ability to respond to changes in data or user interactions.
30+
Reactivity, in programming, refers to an application's ability to respond to changes in data or user interactions.
3131

3232
Traditionally, when a change occurs, the entire web page would need to reload to display the updated information.
3333
In contrast, when using a fine-grained reactive system, updates are only applied to the parts of the page that need to be updated.

src/routes/reference/jsx-attributes/attr.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ description: >-
1515

1616
:::note[Strong-Typing Custom Attributes]
1717
Type definitions are required when using TypeScript.
18-
See the[TypeScript](/configuration/typescript#forcing-properties-and-custom-attributes) page for examples.
18+
See the [TypeScript](/configuration/typescript#forcing-properties-and-custom-attributes) page for examples.
1919
:::
2020

2121
## Syntax

src/routes/solid-router/concepts/actions.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ In this example, an action is defined that creates a support ticket using a remo
5757

5858
## Using actions
5959

60-
Actions can be triggered in two ways: using a HTML [`<form>` element](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/form) or programmatically using the [`useAction` primitive](/solid-router/reference/data-apis/use-action).
60+
Actions can be triggered in two ways: using an HTML [`<form>` element](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/form) or programmatically using the [`useAction` primitive](/solid-router/reference/data-apis/use-action).
6161

6262
The recommended approach is to use a `<form>` element.
6363
This ensures a robust user experience with progressive enhancement, since the form works even without JavaScript.
@@ -97,7 +97,7 @@ function FeedbackForm() {
9797
In this example, when the form is submitted, `submitFeedbackAction` will be triggered with the `FormData` containing the form values.
9898

9999
:::tip[Uploading files]
100-
If a form that includes file inputs, the `<form>` element must have `enctype="multipart/form-data"` to correctly send the file data.
100+
If a form includes file inputs, the `<form>` element must have `enctype="multipart/form-data"` to correctly send the file data.
101101

102102
```tsx
103103
<form action={uploadFileAction} method="post" enctype="multipart/form-data">
@@ -280,7 +280,7 @@ To prevent this, ensure every code path in an action returns a value, such as `{
280280

281281
## Automatic data revalidation
282282

283-
After server data changes, the application's can become stale.
283+
After server data changes, the application's data can become stale.
284284
To solve this, Solid Router automatically revalidates all [queries](/solid-router/data-fetching/queries) used in the same page after a successful action.
285285
This ensures any component using that data is automatically updated with the freshest information.
286286

src/routes/solid-router/concepts/alternative-routers.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ This includes:
2525
## Hash mode
2626

2727
Hash mode routing uses the hash portion of the URL to manage an application's state and navigation.
28-
Unlike the [default router](/solid-router/reference/components/router), the hash portion of the URL will not be handled by the server meaning this is a client-side only routing.
28+
Unlike the [default router](/solid-router/reference/components/router), the hash portion of the URL will not be handled by the server, meaning this is a client-side only routing.
2929
To use hash mode, replace the `<Router />` component in the application with [`<HashRouter />`](/solid-router/reference/components/hash-router).
3030

3131
```jsx del={3, 16} ins={4,17}

src/routes/solid-router/reference/primitives/use-before-leave.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ description: >-
2020
The function will be called with:
2121

2222
- from (_Location_): current location (before change).
23-
- to (_string | number_}: path passed to `navigate.`
24-
- options (_NavigateOptions_}: options passed to `navigate.`
23+
- to (_string | number_): path passed to `navigate.`
24+
- options (_NavigateOptions_): options passed to `navigate.`
2525
- preventDefault (_void function_): call to block the route change.
2626
- defaultPrevented (_readonly boolean_): `true` if any previously called leave handlers called `preventDefault()`.
2727
- retry (_void function_, _force?: boolean_ ): call to retry the same navigation.

src/routes/solid-router/rendering-modes/ssr.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ import { Router } from "@solidjs/router";
2828
<Router url={isServer ? req.url : ""} />;
2929
```
3030

31-
Solid Router also provides a way to define a `preload` function that loads parallel to the routes [render-as-you-fetch](https://epicreact.dev/render-as-you-fetch/).
31+
Solid Router also provides a way to define a `preload` function that loads in parallel to the routes [render-as-you-fetch](https://epicreact.dev/render-as-you-fetch/).

0 commit comments

Comments
 (0)