React component in extensions #705
Unanswered
jamalsoueidan
asked this question in
Q&A
Replies: 2 comments 1 reply
-
No it is not possible. You need to use DOM methods. But if you are using React, do you really need to create an extension? function Carousel() {
return (
<div className="your-carousel">
<Splide>...</Splide>
<button>Custom Button</button>
</div>
);
} |
Beta Was this translation helpful? Give feedback.
1 reply
-
You should consider making a hook in react world for the splide instance 👍 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm writing extensions to add a extra button, is it possible to use react in the extension to add react component like a button to do something? or do I need to manipulate the dom using dom methods?
Beta Was this translation helpful? Give feedback.
All reactions