Embedding Phaser3 Games into React 18 Function Components with useEffectsby@timbushell
2,427 reads
2,427 reads

Embedding Phaser3 Games into React 18 Function Components with useEffects

by Tim Bushell5mMarch 4th, 2023
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

At its simplest implementation, you can use this pattern to add Phaser3 Games and treat them like a GIF animation on steroids. At its most complex, I’ll show you how to launch Phaser3 games inside (and from other) React components, catch events happening inside the game to trigger functions in React. These events could update status notifications in the website’s banner or fire data to your website’s back-end API to keep a permanent record of player progress.
featured image - Embedding Phaser3 Games into  React 18 Function Components with useEffects
Tim Bushell HackerNoon profile picture
Tim Bushell

Tim Bushell

@timbushell

20 years web development; leader in the elioWay; Quora Top Writer (2014-2018);

About @timbushell
LEARN MORE ABOUT @TIMBUSHELL'S
EXPERTISE AND PLACE ON THE INTERNET.

Share Your Thoughts

About Author

Tim Bushell HackerNoon profile picture
Tim Bushell@timbushell
20 years web development; leader in the elioWay; Quora Top Writer (2014-2018);

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
L O A D I N G
. . . comments & more!