Created
September 29, 2019 12:35
-
-
Save neslinesli93/270baf365b5454bf9e09ef89f68a9cd2 to your computer and use it in GitHub Desktop.
Complete app.js for Phoenix LiveView
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import "../css/app.css"; | |
import { Socket } from "phoenix"; | |
import LiveSocket from "phoenix_live_view"; | |
let liveSocket = new LiveSocket("/live", Socket); | |
liveSocket.connect(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment