Skip to content

fix: extract instantiation of Remarkable #2813

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

Conversation

danielkov
Copy link
Contributor

Hello 👋!

Originally in the example A Component Using External Plugins Remarkable was instantiated each time render was called, while I believe the whole point of this example is to show how React can be integrated with other libraries, taking into account different lifecycles and how they're tied together.

With this change the plugin will be instantiated in the constructor, because it makes sense for it to exist throughout the full lifecycle of the component and the example will showcase the more complete and usual use-case this way.

@reactjs-bot
Copy link

Deploy preview for reactjs ready!

Built with commit 62d5d25

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

@threepointone
Copy link
Contributor

Thank you!

@threepointone threepointone merged commit aa17708 into reactjs:master Mar 9, 2020
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