Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FC中无需使用context了 #1

Open
houmao opened this issue Feb 16, 2023 · 0 comments
Open

FC中无需使用context了 #1

houmao opened this issue Feb 16, 2023 · 0 comments

Comments

@houmao
Copy link

houmao commented Feb 16, 2023

FC中无需使用context了,直接使用如下方式实例化就ok了,无需用createContext
const stores = {
counter: new Counter(),
themes: new Themes()
};

export default stores;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant