How to integrate a component (conditionally) inside of another component? #11532
Unanswered
sethlivingston
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Suppose I have a route that displays the details of a Foo.
The <Foo> component has a checkbox that, when selected, should display the <Baz> component at the bottom of the form. The <Baz> component needs data from
loadBaz
.Further, when the <Foo> form submits, I want to run two actions:
saveFoos()
andsaveBaz()
.How does this fit into my React Router setup?
Beta Was this translation helpful? Give feedback.
All reactions