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

Use JS React components from Dart (e.g., Material-UI) #109

Open
jtrunick opened this issue Dec 15, 2016 · 5 comments
Open

Use JS React components from Dart (e.g., Material-UI) #109

jtrunick opened this issue Dec 15, 2016 · 5 comments

Comments

@jtrunick
Copy link

Is it possible to use a component from the Material UI components? If so, is there an example?

(didn't know where to post this question)

@greglittlefield-wf
Copy link
Collaborator

Yes, it is possible to use JavaScript React components, though it's not very straightforward at this time... We can use this issue to track the documentation/support around that.

There was some code written to use JS components in an older version of react-dart, but that needs to be updated. I'll see if I can get some code posted early this week.

@greglittlefield-wf greglittlefield-wf changed the title Question - Material UI example Use JS React components from Dart (e.g., Material-UI) Dec 19, 2016
@greglittlefield-wf
Copy link
Collaborator

Sorry for the delay! I blame the holidays 😄.

Got together a PR to add support and an example for using JS components with react-dart: #112. A couple tests to add still, but it should be about done

Also, I went ahead and ported one of the Material-UI examples to use react-dart! You can see that here: https://github.com/greglittlefield-wf/material-ui-webpack-example

Let me know if you have any questions about that code or any feedback regarding this work!

@jestan
Copy link

jestan commented Mar 24, 2018

Sorry to comment on old issue.
Is there any plan to support this feature?
It will be very useful to reuse existing reactjs components in react-dart/over_react

@aaronlademann-wf
Copy link
Collaborator

@greglittlefield-wf ^

@aaronlademann-wf
Copy link
Collaborator

@jestan @GiovanniL19 @sach97 @ayushin @jtrunick I believe this will be supported / documented in the upcoming react-dart version 5.0.0 (support for ReactJS 16) via #160.

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

4 participants