1 | import { makeObservable } from "mobx"
|
2 | import { useState } from "react"
|
3 |
|
4 | if (!useState) {
|
5 | throw new Error("mobx-react-lite requires React with Hooks support")
|
6 | }
|
7 | if (!makeObservable) {
|
8 | throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available")
|
9 | }
|