form-web-renderer
v0.0.7
Published
npm i form-web-renderer
Downloads
8
Readme
Form Web Renderer
npm i form-web-renderer
const { JSXtoRenderInProject } = useCasterhook(JSONforForm, callBack
isLoading,
isNext)
Example
import { useCasterhook } from "form-web-renderer";
function App() {
const { renderedForm } = useCasterhook(journeySteps, (data: any) =>
console.log(data),
isLoading,
isNext
);
return (
<>
<div>{renderedForm}</div>
</>
);
}
export default App;
-journeySteps
Form Json, useCasterhook convert this JSON into JSX.
-renderedForm
converted form JSX, Which is used to render in project.
-data
formState, which is user input form data.
-isLoading
: optional
flag which is used during API call before switching to the next journey step.
-isNext
: optional
flag which is used to navigate next journey step.