- forwardRef((props, ref) =>
- );
+ forwardRef((props, ref) => );
export default EasyInput;
diff --git a/src/Form/Formbot.example.js b/src/Form/Formbot.example.js
index 924b1d8..014c8ac 100644
--- a/src/Form/Formbot.example.js
+++ b/src/Form/Formbot.example.js
@@ -4,11 +4,12 @@ import Select from './Select';
import Formbot, { Context } from './Formbot';
import Form from './Form';
import Button from '../Button';
-import FormGroup from './FormGroup';
import Fieldset from './Fieldset';
import CheckboxGroup from './CheckboxGroup';
import RadioGroup from './RadioGroup';
import Switch from './Switch';
+import PhoneInput from './PhoneInput';
+import DateInput from './DateInput';
const selectValues = [{ id: 1, value: 'male', label: 'Male' }, { id: 1, value: 'female', label: 'Female' }];
@@ -42,10 +43,8 @@ const radioValues = [
const Values = () => {
const state = useContext(Context);
- return (
- {JSON.stringify(state.values, null, 2)}
- )
-}
+ return {JSON.stringify(state.values, null, 2)}
;
+};
export default class FormbotExample extends React.Component {
nameRef = createRef();
@@ -86,24 +85,13 @@ export default class FormbotExample extends React.Component {