JSFiddle - React, Tailwind, and code Playground

HTML

<script src="http://examples.phaser.io/_site/js/phaser.js"></script>

JavaScript

var game = new Phaser.Game(800, 600, Phaser.CANVAS, 'phaser-example', { preload: preload, create: create });

function preload() {
    game.load.image('backdrop', 'https://fc04.deviantart.net/images/i/2003/39/d/c/Dirt___Ground_Cracks.jpg');
}

function create() {
    game.world.setBounds(0, 0, 1920, 1200);
    game.add.sprite(0, 0, 'backdrop');
    game.input.activePointer.move = function (evt) {
      game.camera.x = evt.offsetX;
      game.camera.y = evt.offsetY;
    };
}