react hooks_通过构建俄罗斯方块游戏来学习React Hooks

react hooks

Learn to create a Tetris game with React Hooks in this course from Thomas Weibenfalk. You will learn how to build Tetris from scratch using hooks like useState, useEffect, useCallback and custom hooks. Styling is done with Styled Components.

从Thomas Weibenfalk的本课程中学习使用React Hooks创建一个俄罗斯方块游戏。 您将学习如何使用诸如useState,useEffect,useCallback和自定义钩子之类的钩子从头开始构建Tetris。 样式是通过样式化组件完成的。

The course covers the following topics:

本课程涵盖以下主题:

  • Introduction

    介绍
  • create-react-app and tooling

    创建React应用程序和工具
  • Scaffolding Components

    脚手架组件
  • Stage and Tetrominos

    舞台和四肢骨
  • Styling with Styled Components

    样式化元件的样式
  • usePlayer and useStage

    usePlayer和useStage
  • Stage update and player movement

    舞台更新和玩家移动
  • Collision Detection

    碰撞检测
  • Player RotationG

    球员轮换
  • Clear Rows

    清除行
  • drop with useInterval

    与useInterval一起删除
  • useGameStatus and React.memo

    useGameStatus和React.memo

You can watch the full video course on the freeCodeCamp.org YouTube channel (3 hour watch).

您可以在freeCodeCamp.org YouTube频道上观看完整的视频课程(观看3小时)。

翻译自: https://www.freecodecamp.org/news/react-hooks-tetris-game/

react hooks

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值