@@ -1531,7 +1531,7 @@ The problem is, there are also many _simple_ cases where these patterns may offe
Bad
-``` js
+```js
app.component('TodoItem', {
props: {
todo: {
@@ -1544,7 +1544,7 @@ app.component('TodoItem', {
})
```
-``` js
+```js
app.component('TodoItem', {
props: {
todo: {
@@ -1574,7 +1574,7 @@ app.component('TodoItem', {
Good
-``` js
+```js
app.component('TodoItem', {
props: {
todo: {
@@ -1594,7 +1594,7 @@ app.component('TodoItem', {
})
```
-``` js
+```js
app.component('TodoItem', {
props: {
todo: {
@@ -1628,7 +1628,7 @@ Vuex is the [official flux-like implementation](/guide/state-management.html#off
Bad
-``` js
+```js
// main.js
import { createApp } from 'vue'
import mitt from 'mitt'
@@ -1657,7 +1657,7 @@ const app = createApp({
Good
-``` js
+```js
// store/modules/todos.js
export default {
state: {
@@ -1678,7 +1678,7 @@ export default {
}
```
-``` html
+```html