@iarani/opendata
v1.0.15
Published
Opendata components to connect your opendata backend to your React applications
Downloads
40
Readme
opendata-packages
Usage/Examples
Using in Next.js
First, import dynamically
import dynamic from "next/dynamic";
const FormSSRWrapper = dynamic(import("@iarani/opendata"), {
ssr: false,
loading: () => <p>Loading ...</p>,
});
Then, display your form
function opendatatest() {
return(
<FormSSRWrapper
form={form} // pass the form name here
values={post} // use this when updating a record
title={" "} // use this when want to use a custom name for your form
/>
)
}