Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

Why you always use React.something instead of import it? #797

Open
hd4ng opened this issue Mar 12, 2020 · 0 comments
Open

Why you always use React.something instead of import it? #797

hd4ng opened this issue Mar 12, 2020 · 0 comments

Comments

@hd4ng
Copy link

hd4ng commented Mar 12, 2020

Hi Kent,

I always see you use React.useState, React.useEffect, ... I just want to know why do you prefer that way instead of import {useState, useEffect, ...} and use it.

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

No branches or pull requests

1 participant