-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
Trying to embed the code from Disqus into my blog site #133
Comments
See how I do it on my blog here: https://github.com/KyleAMathews/blog/blob/master/wrappers/md.cjsx#L51-L54 You shouldn't be calling React.render in a wrapper. Gatsby handles that for you. Just export a component. |
Let me know if you need any more help. |
I did this and it blew up setting |
@dougajmcdonald Mine blew up as well with custom |
* Made componentWithMDXScope a no-op. It is deprecated and doesn't need to be used any more. MDXRenderer is still required for previous uses that required it. * Scopes are now imported via custom webpack loader - TODO: rename mdx-scopes to the loaders dir * Scopes are now merged into a single scope and injected into wrapRootElement on both SSR and Browser renders * Querying code.scope is now a no-op - No files are written when this happens * Relative path import support is added to all MDX Nodes closes gatsbyjs#214 gatsbyjs#202 gatsbyjs#133
I was trying to embed the comment code from Disqus into my blog site, the code below and tried embedding it in multiple ways locally in wrappers/md.js but I haven't been able to get it to work. Any help would be much appreciated.
var React = require('react');
var ReactDisqusThread = require('react-disqus-thread');
var App = createClass({
});
React.render(, document.getElementById('container'));
The text was updated successfully, but these errors were encountered: