Skip to content

Commit 3e2f32b

Browse files
author
edwardxiao
committed
no message
1 parent 21672dd commit 3e2f32b

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 4.9.0
2+
3+
- Update readme
4+
15
# 4.8.9
26

37
- Fix 'undefined' classname for ```__container```

README.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,11 @@ import 'react-inputs-validation/lib/react-inputs-validation.min.css';
5454
<script src="https://cdnjs.cloudflare.com/ajax/libs/react-inputs-validation/4.4.1/react-inputs-validation.min.js"></script>
5555
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.21.1/babel.min.js"></script>
5656
<script type="text/babel">
57-
class App extends React.Component {
58-
...
59-
render() {
60-
return <Textbox value={value} onBlur={()=>{}} .../>;
61-
}
62-
}
63-
ReactDOM.render(<App />, document.getElementById('root'));
57+
const App = React.memo(() => {
58+
const [value, setValue] = React.useState('');
59+
return (<Textbox value={value} onBlur={()=>{}} .../>)
60+
});
61+
ReactDOM.render(<App />, document.getElementById('root'));
6462
</script>
6563
</body>
6664

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-inputs-validation",
3-
"version": "4.8.8",
3+
"version": "4.9.0",
44
"description": "A react component for form inputs validation.",
55
"main": "index.js",
66
"types": "./lib/index.d.ts",

0 commit comments

Comments
 (0)