Skip to content

clarify mountNode with comments #1521

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

Merged
merged 1 commit into from
Jan 2, 2019
Merged

clarify mountNode with comments #1521

merged 1 commit into from
Jan 2, 2019

Conversation

alexkrolick
Copy link
Collaborator

This is still a bit opaque but it's difficult to fix with the current way
CodeEditor works:

  • long-term CodeEditor.js could take a node reference instead of defining
    mountNode internally
  • could also use document.createElement to define the target in the code,
    but this could be mislead people to think this is required instead of
    using an existing reference

see #1017, #1018, #1019

This is still a bit opaque but it's difficult to fix with the current way
CodeEditor works:
- long-term CodeEditor.js could take a node reference instead of defining
  mountNode internally
- could also use document.createElement to define the target in the code,
  but this could be mislead people to think this is required instead of
  using an existing reference

see #1017, #1018, #1019
@reactjs-bot
Copy link

Deploy preview for reactjs ready!

Built with commit 6f6fc8d

https://deploy-preview-1521--reactjs.netlify.com

@gaearon
Copy link
Member

gaearon commented Jan 2, 2019

I don't think this is very clear. Could even be more confusing than what we had.

@gaearon
Copy link
Member

gaearon commented Jan 2, 2019

I'll do it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants