File tree Expand file tree Collapse file tree 3 files changed +10
-8
lines changed Expand file tree Collapse file tree 3 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 1+ # 4.9.0
2+
3+ - Update readme
4+
15# 4.8.9
26
37- Fix 'undefined' classname for ``` __container ```
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments