Hacker News new | ask | show | jobs
by ranza 1825 days ago
Well you sort of can. Just have a [view].js file, where the view variable will be the component. So you can have {view === 'details' && <Details />}