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
But on the other hand PR 963 is meant to implement the "new" context api.
It seems the Differences to React page is pointing to the new api and not the old api that is actually supported. And there's no other Preact documentation indicating how context is currently supposed to be used.
The text was updated successfully, but these errors were encountered:
Correct! I believe it's only been a couple of months since that API was introduced to React, and our documentation needs to be updated. There's a repo for the preact website if you're interested in helping out!
The Differences to React page indicates that context support is included since 3.0 and links to React's Context page which describes the createContext api.
But on the other hand PR 963 is meant to implement the "new" context api.
It seems the Differences to React page is pointing to the new api and not the old api that is actually supported. And there's no other Preact documentation indicating how context is currently supposed to be used.
The text was updated successfully, but these errors were encountered: