Answer the question
In order to leave comments, you need to log in
How to pass a component on the basis of which the drawing will be to another component?
Hey!
Tell me how is this done correctly?
There is, for example, a table component (divided into a header and a body component).
A Row component that only renders plain text data.
A RowSpecial component that renders complex data, with buttons, editable fields, etc.
How to correctly pass the component in which you want to draw data to the table body?
i.e. I want to do this
<Table>
<TableHeader columns={columns} />
<TableBody rowComponent={RowSpecial} data={data} />
</Table>
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