Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
38elements committed Apr 27, 2020
1 parent 30d6008 commit ba1a990
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 48 deletions.
2 changes: 1 addition & 1 deletion content/en/about/browser-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ description: "Preact supports all modern browsers (Chrome, Firefox, Safari, Edge

# Browser Support

Preact supports modern browsers (Chrome, Firefox, Safari, Edge) and IE11+. It works out of the box with these browsers and no additional polyfills are needed.
Preact supports modern browsers (Chrome, Firefox, Safari, Edge) and IE11. It works out of the box with these browsers and no additional polyfills are needed.

<center>
<a href="https://saucelabs.com/u/preact">
Expand Down
41 changes: 0 additions & 41 deletions content/en/about/cli.md

This file was deleted.

2 changes: 1 addition & 1 deletion content/en/about/project-goals.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Preact aims to deliver on a few key goals:

Some React features are intentionally omitted from Preact, either because they are not achievable while meeting the primary project goals listed above or because they don't fit within the scope of Preact's core set of functionality.

- The intentional items under [Differences to React](/guide/v10/differences-to-react):
The intentional items under [Differences to React](/guide/v10/differences-to-react):
- `PropTypes`, which are easily used as a separate library
- `Children`, can be replaced with native arrays
- `Synthetic Events`, since Preact does not attempt to patch issues in older browsers like IE8
Expand Down
4 changes: 2 additions & 2 deletions content/en/guide/v10/api-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ h(

## toChildArray

This helper function converts a `props.children` value to a flattened Array regardless of its structure or nesting. If `props.children` is already an array, a copy is returned. This function is useful in cases where `props.children` may not be an array, which can happen with certain combinatations of static and dynamic expressions in JSX.
This helper function converts a `props.children` value to a flattened Array regardless of its structure or nesting. If `props.children` is already an array, a copy is returned. This function is useful in cases where `props.children` may not be an array, which can happen with certain combinations of static and dynamic expressions in JSX.

For Virtual DOM Elements with a single child, `props.children` is a reference to the child. When there are multiple children, `props.children` is always an Array. The `toChildArray` helper provides a way to consistently handle all cases.

Expand Down Expand Up @@ -201,7 +201,7 @@ See the section in the [Context documentation](/guide/v10/context#createcontext)

## createRef

Creates a ref object, with a `.current` property pointing to the ref's most recently set value.
Creates a `ref` object, with a `current` property pointing to the `ref`'s most recently set value.

See the [References documentation](/guide/v10/refs#createref) for more details.

Expand Down
2 changes: 1 addition & 1 deletion content/en/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ function Counter() {

<section class="home-split">
<div>
<h2>Todo List Component</h2>
<h2>Todo List</h2>
<pre><code class="lang-jsx">
export default class TodoList extends Component {
state = { todos: [], text: '' };
Expand Down
4 changes: 2 additions & 2 deletions test/browser/homepage.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ describe('Homepage', () => {
it('should display "Preact" text on page', async () => {
await page.goto(URL);
await expect(page).toMatch('A different kind of library');
await expect(page).toMatch('Todo List Component');
await expect(page).toMatch('Todo List');
});

it('should not load extra code', async () => {
Expand Down Expand Up @@ -121,7 +121,7 @@ describe('No JS', () => {
it('should display "Preact" text on page', async () => {
await page.goto(URL);
await expect(page).toMatch('A different kind of library');
await expect(page).toMatch('Todo List Component');
await expect(page).toMatch('Todo List');
});

it('should navigate to guide', async () => {
Expand Down

0 comments on commit ba1a990

Please sign in to comment.