diff --git a/README.md b/README.md
index 840fba6..fed35b9 100644
--- a/README.md
+++ b/README.md
@@ -17,5 +17,4 @@ Original project is based on reactstrap. This is the react bootstrap version wit
react-bootstrap does not include in the final package. Need to install it separately when using
## updates
-* Component state will not automatically add to the wizard data (Since component state may have different data which does not required to be track in a global state)
-* setWizardData function will receive as a property to the components and wizard data can be set using it.
\ No newline at end of file
+* Removed wizard data since it is erroneous if click on previous button and had to set state. Use state in the root component and pass properties as required to the steps with stepProps (manage state in the root component)
\ No newline at end of file
diff --git a/demo/src/index.js b/demo/src/index.js
index 65d31b9..9e32522 100644
--- a/demo/src/index.js
+++ b/demo/src/index.js
@@ -1,24 +1,29 @@
-import React, { useImperativeHandle } from 'react'
+import React, { useImperativeHandle, useState } from 'react'
import { render } from 'react-dom'
import ReactWizard from '../../src';
import './fonts/fontawesome/all.css';
import 'bootstrap/dist/css/bootstrap.min.css';
-const Comp1 = (props, ref) => {
- console.debug("props:",props);
+const Comp1 = ({setState,count}, ref) => {
+
useImperativeHandle(ref, () => ({
isValidated() {
return true;
},
- async onClickNext(){
- props.setWizardData({...props.wizardData,step1:"completed"})
+ async onClickNext() {
+
}
}
))
- return