Move Div Challenge

Create four buttons named up, down, left and right. Then create a div that will be controlled by those buttons. The div should live in it's own component.

Learning Goals

  • How to create components and pass in props
  • Practice useState
  • Practice Events
  • useEffect with events

Code

Demo

Resource