Skip to content

Commit ae3a493

Browse files
committed
update readme
1 parent 1b6f831 commit ae3a493

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

CHANGELOG.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@
33
## v1.1.0
44
2019-12-01
55

6-
- **Feature**: Added `x-class` directive for conditionally joining classNames together.
7-
- **Optimization**: Split the runtime into multiple independent files to reduce runtime bundle size.
6+
- **Feature**: Added `x-class` directive for conditionally joining classNames together
7+
- **Optimization**: Split the runtime into multiple independent files to reduce runtime bundle size
88

99
## v1.0.2
1010
2019-11-23
1111

12-
- **Bug**: fix bug that when `x-if` is nested under `x-else` and `x-else-if`, an error is reported.
12+
- **Bug**: fix bug that when `x-if` is nested under `x-else` and `x-else-if`, an error is reported
1313

1414
## v1.0.0
1515
2019-10-20
1616

17-
- **Feature**: Added `x-model-hook` directive for **useState hook function**, and the `x-model` can only be used in **class component** now
17+
- **Feature**: Added `x-model-hook` directive for function component with *useState hook*, and the `x-model` can only be used in *class component* now
1818
- **Optimization**: In some cases use the runtime instead of the AST code
1919
- **Optimization**: Fix some problem of `x-model`
2020
- **Optimization**: Improved stability

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ class Foo extends React.Component {
377377
```
378378

379379
### <span id="toc-directives-x-model-hook">x-model-hook</span>
380-
The `x-model-hook` is similar to the `x-model`, the difference is that the `x-model-hook` is used in the function component with **useState hook**, and the `x-model` is used in the class component.
380+
The `x-model-hook` is similar to the `x-model`, the difference is that the `x-model-hook` is used in the function component with *useState hook*, and the `x-model` is used in the *class component*.
381381

382382
**Example:**
383383
```jsx harmony

0 commit comments

Comments
 (0)