Update README.md
This commit is contained in:
parent
077cf75b25
commit
a43e2e1865
18
README.md
18
README.md
|
@ -45,7 +45,7 @@ In html attributes and text, you can replace context by a javascript expression.
|
||||||
<a href="{this.state.linkRef}">{this.state.linkText}</a>
|
<a href="{this.state.linkRef}">{this.state.linkText}</a>
|
||||||
```
|
```
|
||||||
###### Compiled:
|
###### Compiled:
|
||||||
```
|
```javascript
|
||||||
define([
|
define([
|
||||||
'react',
|
'react',
|
||||||
'lodash'
|
'lodash'
|
||||||
|
@ -67,7 +67,7 @@ This gives you the ability to add conditions to a sub-tree of html. If the condi
|
||||||
<div rt-if="this.state.resultCode === 200">Success!</div>
|
<div rt-if="this.state.resultCode === 200">Success!</div>
|
||||||
```
|
```
|
||||||
###### Compiled:
|
###### Compiled:
|
||||||
```
|
```javascript
|
||||||
define([
|
define([
|
||||||
'react',
|
'react',
|
||||||
'lodash'
|
'lodash'
|
||||||
|
@ -87,7 +87,7 @@ Repeats a node with its subtree for each item in an array. This is implemented b
|
||||||
<div rt-repeat="myNum in this.getMyNumbers()">{myNumIndex}. myNum</div>
|
<div rt-repeat="myNum in this.getMyNumbers()">{myNumIndex}. myNum</div>
|
||||||
```
|
```
|
||||||
###### Compiled:
|
###### Compiled:
|
||||||
```
|
```javascript
|
||||||
define([
|
define([
|
||||||
'react',
|
'react',
|
||||||
'lodash'
|
'lodash'
|
||||||
|
@ -113,7 +113,7 @@ This directive creates a new javascript scope. It actually creates a new method
|
||||||
</div>
|
</div>
|
||||||
```
|
```
|
||||||
###### Compiled:
|
###### Compiled:
|
||||||
```
|
```javascript
|
||||||
define([
|
define([
|
||||||
'react',
|
'react',
|
||||||
'lodash'
|
'lodash'
|
||||||
|
@ -151,7 +151,7 @@ In order to reduce the boiler-plate code when programatically setting class name
|
||||||
</div>
|
</div>
|
||||||
```
|
```
|
||||||
###### Compiled:
|
###### Compiled:
|
||||||
```
|
```javascript
|
||||||
define([
|
define([
|
||||||
'react',
|
'react',
|
||||||
'lodash'
|
'lodash'
|
||||||
|
@ -186,7 +186,7 @@ In order to make it closer to html, we allow the settings of inline styles. In a
|
||||||
</div>
|
</div>
|
||||||
```
|
```
|
||||||
###### Compiled:
|
###### Compiled:
|
||||||
```
|
```javascript
|
||||||
define([
|
define([
|
||||||
'react',
|
'react',
|
||||||
'lodash'
|
'lodash'
|
||||||
|
@ -218,7 +218,7 @@ React event handlers accept function pointers. Therefore, when using event, you
|
||||||
</div>
|
</div>
|
||||||
```
|
```
|
||||||
###### Compiled:
|
###### Compiled:
|
||||||
```
|
```javascript
|
||||||
define([
|
define([
|
||||||
'react',
|
'react',
|
||||||
'lodash'
|
'lodash'
|
||||||
|
@ -251,7 +251,7 @@ In many cases, you'd like to use either library code, or other components within
|
||||||
|
|
||||||
```
|
```
|
||||||
###### Compiled:
|
###### Compiled:
|
||||||
```
|
```javascript
|
||||||
define([
|
define([
|
||||||
'react',
|
'react',
|
||||||
'lodash',
|
'lodash',
|
||||||
|
@ -266,4 +266,4 @@ define([
|
||||||
return _.map(items, repeatItem1.bind(this));
|
return _.map(items, repeatItem1.bind(this));
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue