I'm trying to utilize react-router's useOutletContext to pass a few state variables from my top down component (Page) to children generated in the outlet
I'm getting a bit stuck on how to add multiple state variables into context.
Working Code for a Single State Variable
Parent Component
<Outlet context={[currentValue1, setCurrentValue1]} />
Child Component
const [currentValue1, setCurrentValue1] = useOutletContext();
return (<h1>{currentValue1}</h1>)
How would I pass through [currentValueN, setCurrentValueN] in addition to currentValue1?