Answer the question
In order to leave comments, you need to log in
Dynamic Component via props?
Good afternoon everyone, my question is the following - Is it possible to pass components through ptops? Is it correct?
I have a directory component:
<Directory node={node}
DynamicThingComponent={DynamicThingComponent} //это представление для вещей директории
DynamicDirectoryViewComponent={DynamicDirectoryViewComponent} //это само представление директории
deleteThing={deleteThing}
deleteDirectory={deleteDirectory}/>
Answer the question
In order to leave comments, you need to log in
You can do this and that's okay. Look at the code of the same react-router.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question