Skip to content

Commit

Permalink
docs: correct jsx demo code (vitejs#468) [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
songlairui authored and underfin committed Jul 4, 2020
1 parent 6f7e9ba commit c218b48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ function App() {
}

function Child(_, { slots }) {
return <div onClick={console.log('hello')}>{slots.default()}</div>
return <div onClick={() => console.log('hello')}>{slots.default()}</div>
}

createApp(App).mount('#app')
Expand Down

0 comments on commit c218b48

Please sign in to comment.