Skip to content

fix: extract instantiation of Remarkable#2813

Merged
threepointone merged 1 commit into
reactjs:masterfrom
danielkov:fix/example-external-plugins-extract
Mar 9, 2020
Merged

fix: extract instantiation of Remarkable#2813
threepointone merged 1 commit into
reactjs:masterfrom
danielkov:fix/example-external-plugins-extract

Conversation

@danielkov

Copy link
Copy Markdown
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
Copy Markdown

Deploy preview for reactjs ready!

Built with commit 62d5d25

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

@threepointone

Copy link
Copy Markdown
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