JSFiddle - React, Tailwind, and code Playground
HTML
<!DOCTYPE html>
<html>
<head>
<script src="https://www.gstatic.com/firebasejs/4.1.3/firebase.js"></script>
</head>
<body>
<script>
// Initialize Firebase
var config = {
apiKey: "專案API金鑰號碼", // 若資料庫為PUBLIC就不需要這行
authDomain: "專案驗證網址", // 若資料庫為PUBLIC就不需要這行
databaseURL: "https://專案資料庫網址",
storageBucket: "專案檔案空間", // 若不使用檔案空間就不需要這行
messagingSenderId: "專案通知傳送序號" // 若不使用通知傳送就不需要這行
};
firebase.initializeApp(config);
// Basic Write Operations
firebase.database().ref('slide').set({
currentslideX : 0,
currentslideY : 0
});
</script>
</body>
</html>