Answer the question
In order to leave comments, you need to log in
Why does formsy cause a recursive component to be constantly redrawn?
Good afternoon, dear ones.
There is a project that receives json as an object (in the project it is right in the App.js file at the very top). This project also uses the formsy-react package to work with forms. Since the json object can be of any nesting, I wrote a component for its recursive parsing and output (PropertiesParser.js). Inside this parser there is a MyInput component (for Formsy). But, unfortunately, the code does not work, because for some reason this code makes the App always rerender.
Here is the link to the code .
I've already broken my head on how to implement it correctly.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question