We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ea64ec commit b39a03eCopy full SHA for b39a03e
README.md
@@ -64,16 +64,14 @@ useEffect(() => {
64
Install: `npm i theme-change --save` and use it in your js file:
65
66
```js
67
-import { onMounted } from 'vue'
68
-import { themeChange } from 'theme-change'
+<script setup>
+import { onMounted } from 'vue';
69
+import { themeChange } from 'theme-change';
70
-export default {
71
- setup() {
72
- onMounted(() => {
73
- themeChange(false)
74
- })
75
- },
76
-}
+onMounted(() => {
+ themeChange()
+})
+</script>
77
```
78
79
</details>
0 commit comments