Is there a way to use React components natively in mint? #350
Answered
by
gdotdesign
mrjones2014
asked this question in
Q&A
-
I have a robust Rich Text Editor component I built over a long time in React, I'm wondering if it's possible to use my React rich text editor in Mint natively. Mint looks awesome and I'm really excited to try it out! |
Beta Was this translation helpful? Give feedback.
Answered by
gdotdesign
Dec 26, 2020
Replies: 2 comments
-
It's not trivial but it can be done, you will need to have a custom build for it:
A way to interoperate with NPM will be possible before 1.0. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Sija
-
@gdotdesign thanks! I'll close this issue then. |
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
It's not trivial but it can be done, you will need to have a custom build for it:
MyComponent: MyComponent
)runtime.js
file and copy it into the code of the compiler https://github.com/mint-lang/mint/blob/master/src/assets/runtime.jswrap_runtime
method (const MyComponent = mint.MyComponent
)mint
binary_h(MyComponent, props, children)
A way to interoperate with NPM will be possible before 1.0.