this is probably a very basic question. im making a settings page for my site and I need some help.
<Route path="/conversations/settings" render={props => <Setting isNew colorMode=
{props.colorMode} toggleColorMode={props.toggleColorMode}/>}/>
so what I want this to do ideally is when you click a button on the settings page it enables/disables darkmode. In this situation it doesnt. but if I write it like this
<Setting colorMode={props.colorMode} toggleColorMode={props.toggleColorMode}/>
I can actually enable/disable darkmode, but this means the settings page renders on every page of the website which of course, I dont want.