Closed mwaeckerlin closed 5 years ago
@mwaeckerlin This issue is quite large and outlines too many items for a single Github issue. Please break it down into smaller items and open issues for each one.
I will consider the custom render props part of the issue resolved by #81.
I'll open new tickets for the issues that are now still open.
BTW, @honestbonsai, I suggest a release to npm from current development now. There are useful new features and arrays are fixed.
I have seen here many questions, requests (e.g. #69, #71) and one idea (#70) on how drizzle-react-component could be made more flexible. Here is my suggestion:
Problems
<textarea>
vs<input type="text">
) or even<TextField>
from@material-ui
(not even solved in #70)In short terms: drizzle-react-component is nice for some small tutorial examples, but far away from a production ready library. But I like the basic concepts and simplicity of the approach.
Idea
In #70, @macsj200 suggests to add a property
customComponent
this solves configurability for simple rendering, but not in complex cases, such as for arrays and maps.I suggest a different approach: Allow nested components inside
ContractData
andContractForm
, these are then used to render the content.This is just a simple pseudo code to show how I see the solution:
ToDo
I forked the project to https://github.com/mwaeckerlin/drizzle-react-components. I will now try to implement step by step a solution for the principle above.
Please add your comments, what do you think about this approach? @honestbonsai, would you be willing to accept such a change? @macsj200, would you accept this more flexible solution in favour of your suggestion in #70?