You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const{ snapshotsLength }=props;// destructure props to get our total number of snapshots
32
-
const[{ tabs, currentTab },dispatch]=useStoreContext();// we destructure the returned context object from the invocation of the useStoreContext function. Properties not found on the initialState object (dispatch) are from the useReducer function invocation in the App component
33
-
const{ currLocation }=tabs[currentTab];// we destructure the currentTab object
34
+
// const [{ tabs, currentTab }, dispatch] = useStoreContext(); // we destructure the returned context object from the invocation of the useStoreContext function. Properties not found on the initialState object (dispatch) are from the useReducer function invocation in the App component
34
35
const[sliderIndex,setSliderIndex]=useState(0);// create a local state 'sliderIndex' and set it to 0.
0 commit comments