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

搜狐 #43

Open
Amybiubiu opened this issue Oct 29, 2021 · 0 comments
Open

搜狐 #43

Amybiubiu opened this issue Oct 29, 2021 · 0 comments
Labels

Comments

@Amybiubiu
Copy link
Owner

记一些

  • react hooks
function Counter() {
  let [count, setCount] = useState(0)

  useEffect(() => {
    let id = setInterval(() => {
      setCount(count + 1)
    }, 1000)
    return () => clearInterval(id)
  }, [])
  
  return <h1>{count}</h1>
}
// https://overreacted.io/zh-hans/making-setinterval-declarative-with-react-hooks/
  • 为什么要 http -》 https
  • 从输入浏览器到页面呈现。
  • flex 布局
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant