Use React inside of Phaser 3 (with TypeScript) example


Quick example on how to use React in Phaser 3


  • Send events between Phaser and React
  • Access Phaser scene inside any React component
  • Scales with Phaser’s ScaleManger

Bug (help appreciated)

  • [SOVLED in #1361] When the Keyboard in open on a mobile phone, the Game resizes
  • Don’t know how to make something similar to this “this.input.setTopOnly(true)” work

Click on div under phaser object
Vue + Phaser 3 and Html tags for UI