Skip to content

Commit

Permalink
refactor: format with textlint style
Browse files Browse the repository at this point in the history
  • Loading branch information
potato4d committed Feb 1, 2019
1 parent cf86b4e commit 4202a7e
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion content/blog/2014-02-05-community-roundup-15.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ Fredrik Dyrkell ([@lexicallyscoped](https://twitter.com/lexicallyscoped)) rewrot
In a separate post, Dyrkell breaks down [how to build a binary clock component](http://www.lexicallyscoped.com/2014/01/23/ClojureScript-react-om-binary-clock.html) in Om.

[[Demo](http://www.lexicallyscoped.com/demo/binclock/)] [[Code](https://github.com/fredyr/binclock/blob/master/src/binclock/core.cljs)]
[[Demo](http://www.lexicallyscoped.com/demo/binclock/)][[Code](https://github.com/fredyr/binclock/blob/master/src/binclock/core.cljs)]

### Time Travel: Implementing undo in Om
David Nolen shows how to leverage immutable data structures to [add global undo](https://swannodette.github.io/2013/12/31/time-travel/) functionality to an app – using just 13 lines of ClojureScript.
Expand Down
2 changes: 1 addition & 1 deletion content/blog/2014-02-15-community-roundup-16.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ It's great to see the React community expand internationally. [This site](http:/

### Egghead.io video tutorials

Joe Maddalone ([@joemaddalone](https://twitter.com/joemaddalone)) of [egghead.io](https://egghead.io/) created a series of React video tutorials, such as [this](http://www.youtube-nocookie.com/v/rFvZydtmsxM) introduction to React Components. [[part 1](http://www.youtube-nocookie.com/v/rFvZydtmsxM)], [[part 2](http://www.youtube-nocookie.com/v/5yvFLrt7N8M)]
Joe Maddalone ([@joemaddalone](https://twitter.com/joemaddalone)) of [egghead.io](https://egghead.io/) created a series of React video tutorials, such as [this](http://www.youtube-nocookie.com/v/rFvZydtmsxM) introduction to React Components.[[part 1](http://www.youtube-nocookie.com/v/rFvZydtmsxM)],[[part 2](http://www.youtube-nocookie.com/v/5yvFLrt7N8M)]

### "React: Finally, a great server/client web stack"

Expand Down
2 changes: 1 addition & 1 deletion content/blog/2014-02-24-community-roundup-17.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Emanuele shared this awesome demo video with us:


### Table Sorter
[Table Sorter](https://bgerm.github.io/react-table-sorter-demo/) by [bgerm](https://github.com/bgerm) [[source](https://github.com/bgerm/react-table-sorter-demo)] is another helpful React component.
[Table Sorter](https://bgerm.github.io/react-table-sorter-demo/) by [bgerm](https://github.com/bgerm)[[source](https://github.com/bgerm/react-table-sorter-demo)]is another helpful React component.

### Static-search

Expand Down
8 changes: 4 additions & 4 deletions content/community/videos.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ next: complementary-tools-zh-CN.html

### CodeWinds

[Pete Hunt](http://www.petehunt.net/)[Jeff Barczewski](http://jeff.barczewski.com/) 在 CodeWinds Episode 4 上关于 React 的谈话.
[Pete Hunt](http://www.petehunt.net/)[Jeff Barczewski](http://jeff.barczewski.com/) 在 CodeWinds Episode 4 上关于 React 的谈话
<figure><a href="http://codewinds.com/4"><img src="../images/docs/codewinds-004.png"></a></figure>

<table width="100%"><tr><td>
Expand Down Expand Up @@ -71,7 +71,7 @@ next: complementary-tools-zh-CN.html

### JavaScript Jabber

[Pete Hunt](http://www.petehunt.net/)[Jordan Walke](https://github.com/jordwalke) 在 JavaScript Jabber 73 上关于React的谈话.
[Pete Hunt](http://www.petehunt.net/)[Jordan Walke](https://github.com/jordwalke) 在 JavaScript Jabber 73 上关于React的谈话
<figure><a href="http://javascriptjabber.com/073-jsj-react-with-pete-hunt-and-jordan-walke/#content"><img src="../images/docs/javascript-jabber.png"></a></figure>

<table width="100%"><tr><td>
Expand Down Expand Up @@ -108,7 +108,7 @@ next: complementary-tools-zh-CN.html
### Backbone + React + Middleman Screencast
<iframe width="650" height="488" src="https://www.youtube-nocookie.com/embed/iul1fWHVU6A" frameborder="0" allowfullscreen></iframe>

Backbone 是一个在用React实现 REST API 接口的极好方法。这个屏博展示了用 [Backbone-React-Component](https://github.com/magalhas/backbone-react-component)如何整合两者. Middleman 是在本例中使用的框架但很容易被替换成其他框架。对此可支持的template可以在[这里](https://github.com/jbhatab/middleman-backbone-react-template) 找到. -- [Open Minded Innovations](http://www.openmindedinnovations.com/)
Backbone 是一个在用React实现 REST API 接口的极好方法。这个屏博展示了用 [Backbone-React-Component](https://github.com/magalhas/backbone-react-component)如何整合两者 Middleman 是在本例中使用的框架但很容易被替换成其他框架。对此可支持的template可以在[这里](https://github.com/jbhatab/middleman-backbone-react-template) 找到 -- [Open Minded Innovations](http://www.openmindedinnovations.com/)

* * *

Expand Down Expand Up @@ -160,7 +160,7 @@ Facebook 工程师 [Bill Fisher](https://twitter.com/fisherwebdev) 和 [Jing Che

<iframe src="https://player.vimeo.com/video/108488724" width="100%" height="365" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>

来自 [Andres Suarez](https://github.com/zertosh) 的演练,关于 [SoundCloud](https://developers.soundcloud.com/blog/) 如何使用 React 和 Flux 在服务器端渲染.
来自 [Andres Suarez](https://github.com/zertosh) 的演练,关于 [SoundCloud](https://developers.soundcloud.com/blog/) 如何使用 React 和 Flux 在服务器端渲染

[幻灯片和示例代码](https://github.com/zertosh/ssr-demo-kit)

Expand Down
2 changes: 1 addition & 1 deletion content/docs/forms.md
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ this.setState(partialState);
[制御されたコンポーネント](/docs/forms.html#controlled-components)で value プロパティに値を指定することで、変更させたくない場合にユーザーが値を変更できないようになります。もしも
`value` を指定したのに入力フィールドが依然変更可能であるという場合は、`value` を誤って `undefined` もしくは `null` に設定してしまったのかもしれません。

以下のコードでこれを示しています。(入力フィールドは最初はロックされていますが、短い遅延の後に編集可能になります
以下のコードでこれを示しています。(入力フィールドは最初はロックされていますが、短い遅延の後に編集可能になります)

```javascript
ReactDOM.render(<input value="hi" />, mountNode);
Expand Down
2 changes: 1 addition & 1 deletion content/docs/hello-world.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ prev: cdn-links.html
next: introducing-jsx.html
---

React のいちばん短い例はこのようになります:
React のいちばん短い例はこのようになります

```js
ReactDOM.render(
Expand Down
4 changes: 2 additions & 2 deletions content/docs/lists-and-keys.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ key が意味を持つのは、それをとり囲んでいる配列の側の文

例えば、`ListItem` コンポーネントを抽出する際には、key は `ListItem` 自体の `<li>` 要素に書くのではなく、配列内の `<ListItem />` 要素に残しておくべきです。

**: 不適切な key の使用法**
** 不適切な key の使用法**

```javascript{4,5,14,15}
function ListItem(props) {
Expand Down Expand Up @@ -172,7 +172,7 @@ ReactDOM.render(
);
```

**: 正しい key の使用法**
** 正しい key の使用法**

```javascript{2,3,9,10}
function ListItem(props) {
Expand Down
8 changes: 4 additions & 4 deletions content/docs/state-and-lifecycle.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ state は props に似ていますが、コンポーネントによって完全

1. `React.Component` を継承する同名の [ES6 クラス](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Classes)を作成する。

2. `render()` と呼ばれる空のメソッドを1つ追加する
2. `render()` と呼ばれる空のメソッドを1つ追加する

3. 関数の中身を `render()` メソッドに移動する。

Expand Down Expand Up @@ -146,7 +146,7 @@ class Clock extends React.Component {
}
```

親クラスのコンストラクタへの `props` の渡し方に注目してください:
親クラスのコンストラクタへの `props` の渡し方に注目してください

```js{2}
constructor(props) {
Expand Down Expand Up @@ -355,7 +355,7 @@ this.setState({
});
```

これを修正するために、オブジェクトではなく関数を受け取る `setState()` つ目の形を使用します。その関数は前の state を最初の引数として受け取り、更新が適用される時点での props を第 2 引数として受け取ります:
これを修正するために、オブジェクトではなく関数を受け取る `setState()`2 つ目の形を使用します。その関数は前の state を最初の引数として受け取り、更新が適用される時点での props を第 2 引数として受け取ります:

```js
// Correct
Expand Down Expand Up @@ -443,7 +443,7 @@ function FormattedDate(props) {

コンポーネントツリーとは props が流れ落ちる滝なのだと想像すると、各コンポーネントの state とは任意の場所で合流してくる追加の水源であり、それらもまた下に流れ落ちていくものなのです。

全てのコンポーネントが本当に独立していることを示すのに、3つの `<Clock>` をレンダリングする `App` コンポーネントを作成します:
全てのコンポーネントが本当に独立していることを示すのに、3つの `<Clock>` をレンダリングする `App` コンポーネントを作成します:

```js{4-6}
function App() {
Expand Down

0 comments on commit 4202a7e

Please sign in to comment.