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

react+JSX plugin #2748

Open
bcolloran opened this issue Mar 24, 2020 · 1 comment
Open

react+JSX plugin #2748

bcolloran opened this issue Mar 24, 2020 · 1 comment

Comments

@bcolloran
Copy link
Contributor

(moving issue from pyodide/pyodide#626)

Quite some time ago @hamilton built a react+JSX plugin, but it was only intended as an experimental proof-of-concept; I believe it was not polished and QA'ed to Hamilton's satisfaction, and since it was mostly an experiment, it has not been maintained.

Nonetheless, it did work, and so it remains a good starting point. It would probably not take a ton of work to get it working again at the level to which Hamilton had built it out, and work towards making it more robust could proceed from there (though I don't recall at this point what more it might have needed).

cc @Darruma

@bcolloran
Copy link
Contributor Author

Hamilton's plugin is here:
https://raw.githubusercontent.com/hamilton/iodide-jsx/master/docs/evaluate-jsx.js

and here is the example plugin spec chunk

%% plugin
{
  "languageId": "jsx",
  "displayName": "React JSX",
  "codeMirrorMode": "jsx",
  "keybinding": "x",
  "url": "https://raw.githubusercontent.com/hamilton/iodide-jsx/master/docs/evaluate-jsx.js",
  "module": "jsx",
  "evaluator": "evaluateJSX",
  "pluginType": "language"
}

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