✍
Your first app
Your first app will now be created!
🔥
Then you'll redirected to your apps code and preview.
Below is an example of an Mu app:
<style>
h1 {
color: red;
}
</style>
<h1>Hello world!</h1>
<script>
console.log(mu);
</script>
Now your app is created, you will now have access to all of Mu's functionality. This can be found at
window.mu
or mu
. For more information on this please read our documentation.The best way to add a popular JS framework is to use a CDN. Here is an example using Vue.js:
<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
<style>
body {}
</style>
<div id="app">{{ message }}</div>
<script type="module">
import { createApp, ref } from 'https://unpkg.com/vue@3/dist/vue.esm-browser.js'
createApp({
setup() {
const message = ref('Hello vue!')
return {
message
}
}
}).mount('#app')
</script>
Last modified 1mo ago