title: New fearture in react-router-dom v6 useOutletContext() issue, what versions support it
body: <p>I use react-router-dom and react-router v6.0.2 and I want to use the useOutletContext() the new features in v6 to pass props through outlet but it return this issue.</p>
  <p><a href="https://i.stack.imgur.com/4rF77.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4rF77.png" alt="enter image description here" /></a></p>
  <p>How can't I fix it and what versions does useOutletContext() support</p>