📅  最后修改于: 2022-03-11 15:04:20.509000             🧑  作者: Mango
import React from 'react';
import RecoilOutside from "recoil-outside";
import { RecoilRoot } from "recoil";
import Main from "./Main"
const App = () => {
return (
);
};
export default App;
// Other File
import { promiseSetRecoil, promiseGetRecoil } from "recoil-outside"import { store } from "./Store"
export const setTest = async() => {
await promiseSetRecoil(store, "Success")
}
export const getTest = async() => {
const value = await promiseGetRecoil(store)
return value
}