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

Embedding ramda/repl #52

Open
chasm opened this issue Oct 26, 2017 · 2 comments
Open

Embedding ramda/repl #52

chasm opened this issue Oct 26, 2017 · 2 comments

Comments

@chasm
Copy link

chasm commented Oct 26, 2017

I am working on a small React/Redux Next.js app to teach FP and React in an FP style (using Ramda). It would be very helpful to be able to embed the Ramda REPL into the app pages similarly to the way it is embedded in the Ramda documentation.

Is this permitted? If so, are there examples? The instructions here are great but inject directly into the DOM. This is complicated when working with a virtual DOM implementation such as that in React. It would be nice to have a reusable React component that provided REPL functionality and could be used multiple times on a page. If I wrote such a component, I'd be happy to share it via npm/GitHub. Or maybe one already exists?

Any help greatly appreciated.

@CrossEye
Copy link
Member

I for one have no objections at all. I think it would be a great thing!

If you're looking for a REPL that could be embedded multiple times in a page, you might consider RunKit. This is how Ramda inlines its runnable examples; the stand-alone REPL is an entirely different codebase. I don't know anything about a React component, though. (You might ping @tolmasky about that.)

@chasm
Copy link
Author

chasm commented Oct 26, 2017

Oh, joy! There is a react-runkit. I am indebted to you, sir.

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

2 participants