Click in order · JavaScript and React course · Module 15: Patterns and Architecture
Building a Declarative Feature Component
Click in order the pieces of the one-line Feature component: an enabled flag shows children, a disabled one shows fallback.
Items to click
- const Feature =
- : fallback;
- ({ name, children, fallback = null }) =>
- useFeatureFlag(name)
- ? children
You can check the correct answer by solving this task in the CodeWorlds game.