Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't we use styled components with vuejs templates? Or is jsx mandatory? #49

Open
shibisuriya opened this issue Apr 18, 2023 · 0 comments

Comments

@shibisuriya
Copy link

shibisuriya commented Apr 18, 2023

I was wonder if we could write code like this instead of using vuejs's jsx feature? Since I am facing some reactivity issues while working with jsx...

<template>
  <dummy-component></dummy-component>
</template>
<script>
import DummyComponent from './DummyComponent.vue'
import { styled } from '@egoist/vue-emotion'
export default {
  components: {
    'dummy-component': styled(DummyComponent)`
      .title:hover {
        color: #ed508f;
      }
    `,
  },
}
</script>
<style lang="scss" scoped></style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant