You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- A highly optimized diff algorithm and seamless Server Side Rendering
14
14
- Transparent asynchronous rendering with a pluggable scheduler
15
+
- 🆕💥 **Instant no-config app bundling with [Preact CLI](https://github.com/developit/preact-cli)**
15
16
16
17
### 💁 More information at the [Preact Website ➞](https://preactjs.com)
17
18
@@ -125,9 +126,13 @@ Preact supports modern browsers and IE9+:
125
126
126
127
## Getting Started
127
128
128
-
> 💁 You [don't _have_ to use ES2015 to use Preact](https://github.com/developit/preact-without-babel)... but you should.
129
+
> 💁 _**Note:**You [don't need ES2015 to use Preact](https://github.com/developit/preact-in-es3)... but give it a try!_
129
130
130
-
The following guide assumes you have some sort of ES2015 build set up using babel and/or webpack/browserify/gulp/grunt/etc. If you don't, start with [preact-boilerplate] or a [CodePen Template](http://codepen.io/developit/pen/pgaROe?editors=0010).
131
+
The easiest way to get started with Preact is to install [Preact CLI](https://github.com/developit/preact-cli). This simple command-line tool wraps up the best possible Webpack and Babel setup for you, and even keeps you up-to-date as the underlying tools change. Best of all, it's easy to understand! It builds your app in a single command (`preact build`), doesn't need any configuration, and bakes in best-practises 🙌.
132
+
133
+
The following guide assumes you have some sort of ES2015 build set up using babel and/or webpack/browserify/gulp/grunt/etc.
134
+
135
+
You can also start with [preact-boilerplate] or a [CodePen Template](http://codepen.io/developit/pen/pgaROe?editors=0010).
131
136
132
137
133
138
### Import what you need
@@ -331,7 +336,7 @@ Here is a somewhat verbose Preact `<Link>` component:
331
336
```js
332
337
classLinkextendsComponent {
333
338
render(props, state) {
334
-
return<a href={props.href}>{props.children}</a>;
339
+
return<a href={props.href}>{props.children}</a>;
335
340
}
336
341
}
337
342
```
@@ -340,21 +345,21 @@ Since this is ES6/ES2015, we can further simplify:
0 commit comments