I already follow the instruction on the docs here.
This is what I did
vue create example-app
cd example-app
I choose the vue 3 preset.
then change the script in main.js
import Vue from 'vue';
import Button from 'ant-design-vue/lib/button';
import 'ant-design-vue/dist/antd.css';
import App from './App';
Vue.component(Button.name, Button);
Vue.config.productionTip = false;
new Vue({
render: h => h(App),
}).$mount('#app');
here's my App.js file
<template>
<div id="app">
<img src="./assets/logo.png">
<a-button type="primary">Button</a-button>
</div>
</template>
<script>
export default {
name: 'App',
components: {
}
}
</script>
<style>
</style>
But why there is no Button component on the screen? all I got is blank screen
