Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Fix inconsistencies in the react and preact docs #483

Merged
merged 1 commit into from
Nov 28, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/packages/preact/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
## Features

- Zero upfront configuration necessary to start developing and building a Preact web app
- Modern Babel compilation adding JSX and object rest spread syntax.
- Modern Babel compilation adding JSX, object rest spread syntax, and class properties.
- Write JSX in .js or .jsx files
- Automatic import of `Preact.h`, no need to import `h` or `createElement` yourself
- Compatibility and pre-configured aliasing for React-based modules and packages
Expand Down
4 changes: 1 addition & 3 deletions docs/packages/react/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
## Features

- Zero upfront configuration necessary to start developing and building a React web app
- Modern Babel compilation adding JSX and object rest spread syntax.
- Modern Babel compilation adding JSX, object rest spread syntax, and class properties.
- Support for React Hot Loader
- Write JSX in .js or .jsx files
- Automatic import of `React.createElement`, no need to import `react` or `React.createElement` yourself
Expand Down Expand Up @@ -69,7 +69,6 @@ This React preset exposes an element in the page with an ID of `root` to which y
your `src/index.js` file with the following:

```jsx
import React from 'react';
import { render } from 'react-dom';

render(<h1>Hello world!</h1>, document.getElementById('root'));
Expand Down Expand Up @@ -256,7 +255,6 @@ from `react-hot-loader`. The main file may be named `index.js` or `index.jsx`. T
For example:

```jsx
import React from 'react';
import { render } from 'react-dom';
import { AppContainer } from 'react-hot-loader';
import MyApp from './MyApp';
Expand Down
1 change: 1 addition & 0 deletions packages/preact/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/test/
2 changes: 1 addition & 1 deletion packages/preact/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
## Features

- Zero upfront configuration necessary to start developing and building a Preact web app
- Modern Babel compilation adding JSX and object rest spread syntax.
- Modern Babel compilation adding JSX, object rest spread syntax, and class properties.
- Write JSX in .js or .jsx files
- Automatic import of `Preact.h`, no need to import `h` or `createElement` yourself
- Compatibility and pre-configured aliasing for React-based modules and packages
Expand Down
8 changes: 3 additions & 5 deletions packages/react/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
## Features

- Zero upfront configuration necessary to start developing and building a React web app
- Modern Babel compilation adding JSX and object rest spread syntax.
- Modern Babel compilation adding JSX, object rest spread syntax, and class properties.
- Support for React Hot Loader
- Write JSX in .js or .jsx files
- Automatic import of `React.createElement`, no need to import `react` or `React.createElement` yourself
Expand All @@ -20,7 +20,7 @@
- Automatic creation of HTML pages, no templating necessary
- Hot Module Replacement support
- Tree-shaking to create smaller bundles
- Production-optimized bundles with Babili minification, easy chunking, and scope-hoisted modules for faster execution
- Production-optimized bundles with Babel minification, easy chunking, and scope-hoisted modules for faster execution
- Easily extensible to customize your project as needed

## Requirements
Expand Down Expand Up @@ -69,7 +69,6 @@ This React preset exposes an element in the page with an ID of `root` to which y
your `src/index.js` file with the following:

```jsx
import React from 'react';
import { render } from 'react-dom';

render(<h1>Hello world!</h1>, document.getElementById('root'));
Expand Down Expand Up @@ -138,7 +137,7 @@ You can either serve or deploy the contents of this `build` directory as a stati
If you wish to copy files to the build directory that are not imported from application code, you can place
them in a directory within `src` called `static`. All files in this directory will be copied from `src/static`
to `build/static`. To change this behavior, specify your own patterns with
[@neutrinojs/copy](../../packages/copy/README.md).
[@neutrinojs/copy](https://neutrino.js.org/packages/copy).

## Paths

Expand Down Expand Up @@ -256,7 +255,6 @@ from `react-hot-loader`. The main file may be named `index.js` or `index.jsx`. T
For example:

```jsx
import React from 'react';
import { render } from 'react-dom';
import { AppContainer } from 'react-hot-loader';
import MyApp from './MyApp';
Expand Down