Is it allowed to store non serializable object in React context ?

I'm unable to find answer on this question in the [docs](http://Is%20it%20allowed%20to%20store%20non%20serializable%20object%20in%20React%20context%20?)

I know it is considered as a bad practice in redux store, see [here](https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state).

Could you please provide any arguments or link to the docs about using non serializable objects in context?

Consider next example:

```js
class A {
 foo=()=> void 0
 bar=()=> void 0
}

const context = React.createContext(new A()) // is this ok ?

```