Skip to content

Fixes for React 0.13.x #5

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

Closed
wants to merge 3 commits into from

Conversation

matthewgertner
Copy link

I tried your component on React 0.13.1, and the injected script to set the disqus_ variables doesn't run. I'm not sure whether it used to work in older versions; this thread says that setting innerHTML on a <script> element does not cause the scripts to run: facebook/react#654.

In any case, it seems cleaner to me to simply set the variables in componentDidMount.

@@ -28,7 +28,7 @@
},
"homepage": "https://github.com/mzabriskie/react-disqus-thread",
"dependencies": {
"react": "^0.12.0"
"react": "0.12.x - 1.x"
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also changed this since otherwise the React versions seem to conflict and prevent the component from working.

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

Successfully merging this pull request may close these issues.

2 participants