Sometimes we need to display custom components inside the View form of RJSF.
We normally do it with custom widgets.
Now that we have prepareDataForForm, we can create a generic custom component that accepts a ReactNode to display this data.
We will also need to change the prepareDataForForm type to accept it
Tasks:
- Create a generic custom widget that accepts
ReactNode and displays it
- Change types of
prepareDataForForm to allow ReactNode
*** This idea will probably not work if you need to edit the data
Sometimes we need to display custom components inside the View form of RJSF.
We normally do it with custom widgets.
Now that we have
prepareDataForForm, we can create a generic custom component that accepts aReactNodeto display this data.We will also need to change the
prepareDataForFormtype to accept itTasks:
ReactNodeand displays itprepareDataForFormto allowReactNode*** This idea will probably not work if you need to edit the data