Skip to content

Commit 00f5c72

Browse files
authored
Merge pull request #601 from Abazhenov/dev
Docs Formatting
2 parents e91cbc8 + a53aa47 commit 00f5c72

File tree

3 files changed

+10
-21
lines changed

3 files changed

+10
-21
lines changed

docs/api/inferno-redux.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Inferno Redux
33
---
44

5-
We understand that a lot of application in the React ecosystem use [Redux](//reduxjs.org) to manage data. Thus we have a created a port of React-Redux for Inferno to ease the process of porting an application over.
5+
We understand that a lot of applications in the React ecosystem use [Redux](//reduxjs.org) to manage data. Thus we have created a port of React-Redux for Inferno to ease the process of porting an application over.
66

77
## `Provider`
88

docs/api/inferno.md

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -110,22 +110,6 @@ If a component has been mounted into the DOM, this returns the corresponding nat
110110

111111
**Note**: we recommend using a `ref` callback on a component to find its instance, rather than using `findDOMNode`. `findDOMNode` cannot be used on functional components.
112112

113-
## createRenderer
114-
115-
`createRenderer` allows for functional composition when rendering content to the DOM. An example of this is shown below:
116-
117-
```javascript
118-
import Inferno from 'inferno';
119-
import { scan, map } from 'most';
120-
121-
...
122-
const model$ = scan(update, 0, actions$);
123-
const vNodes$ = map(view(actions$), model$);
124-
const renderer = Inferno.createRenderer();
125-
const runApp = () => scan(renderer, container, vNodes$).drain();
126-
127-
runApp();
128-
```
129113

130114
## disableRecycling
131115
As an application changes components will be reused as they are mounted and unmounted from the DOM. By default Inferno enables *recycling* to have a pool of components which can be reused when components are mounted into the DOM. However if you wish to disable this feature you can.

docs/guides/get-started.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
title: Get Started
33
---
44

5-
There are three ways to get setup with Inferno, the simple `create-inferno-app`, installation via NPM, or using the Cloudfare CDN.
5+
There are three ways to get setup with Inferno: using the simple `create-inferno-app`, installing via NPM, or by using the Cloudfare CDN.
66

77
## Create Inferno App
88

9-
Similarly to React you can get started by using `create-inferno-app`. Make sure that you have Node installed
9+
Similar to React's `create-react-app`, you can get started by using `create-inferno-app`. Make sure that you have Node installed
1010

1111
```
1212
(sudo) npm install -g create-inferno-app
@@ -18,13 +18,18 @@ npm start
1818
Then navigate to [`http://localhost:8080/`](http://localhost:8080) to view the application.
1919

2020
## NPM Installation
21-
The core Inferno is packaged on NPM as `inferno`.
21+
Inferno is packaged on NPM as `inferno`.
2222

2323
<div>
2424
`npm install inferno --save`
2525
</div>
2626

27-
Which will set you up with the core package and everything you need to start creating components and rendering them, but you'll probably want to take a look at our [other packages]({{site.url}}/guides/architecture) for convenience.
27+
This will set you up with the core package and everything you need to start creating components and rendering them, but you'll probably want to take a look at our [other packages]({{site.url}}/guides/architecture) for convenience.
2828

2929
## Cloudfare
3030

31+
Pre-bundled files for browser consumption can be found on [our cdnjs](https://cdnjs.com/libraries/inferno):
32+
33+
```
34+
https://cdnjs.cloudflare.com/ajax/libs/inferno/1.0.0-beta36/inferno.min.js
35+
```

0 commit comments

Comments
 (0)