title: $(...).pushpin is not a function - reactJs, Materializecss
body: <p>I've made up the page with jquery and materializecss. All js worked well in it. But as soon as I've transferred it to reactJs components, one of js scripts stopped work. </p>
  
  <p>Here the component. As you can see, there is another js initialization right above, from the same materialize.min.js, and it works perfectly. Why the second one doesn't?</p>
  
  <pre><code>    var React = require('react');
  
  var CharSpy = React.createClass({
      componentDidMount: function() {
      // this one works well
      $('.scrollspy').scrollSpy();
      // this one doesn't work
      $('.tabs-wrapper').pushpin({ offset: 65 });
      },
      render: function() {
          return (
          &lt;div className="tabs-wrapper"&gt;
              &lt;ul className="section table-of-contents"&gt;
            &lt;li&gt;&lt;a href="#user"&gt;&lt;span className="hide-on-small-only"&gt;Профиль&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href="#abilities"&gt;&lt;span className="hide-on-small-only"&gt;Способности&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href="#activity"&gt;&lt;span className="hide-on-small-only"&gt;Статистика&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href="#skillmap"&gt;&lt;span className="hide-on-small-only"&gt;Карта&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href="#comments"&gt;&lt;span className="hide-on-small-only"&gt;Комментарии&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
          &lt;/ul&gt;
          &lt;/div&gt;
          );
      }
  
  });
  
  module.exports = CharSpy;
  </code></pre>
  
  <p>The error:</p>
  
  <pre><code>Uncaught TypeError: $(...).pushpin is not a function
  React.createClass.componentDidMount @ main.js:22993
  assign.notifyAll @ main.js:3920O
  N_DOM_READY_QUEUEING.close @ main.js:17089
  Mixin.closeAll @ main.js:19861
  Mixin.perform @ main.js:19802
  batchedMountComponentIntoNode @ main.js:15144
  Mixin.perform @ main.js:19788
  ReactDefaultBatchingStrategy.batchedUpdates @ main.js:12271
  batchedUpdates @ main.js:18015
  ReactMount._renderNewRootComponent @ main.js:15279
  ReactPerf.measure.wrapper @ main.js:16518
  ReactMount.render @ main.js:15368
  ReactPerf.measure.wrapper @ main.js:16518
  (anonymous function) @ main.js:23680
  React.createClass.statics.run.dispatchHandler @ main.js:1852(
  anonymous function) @ main.js:1820(
  anonymous function) @ main.js:874(a
  nonymous function) @ main.js:874Tr
  ansition.to @ main.js:877(a
  nonymous function) @ main.js:1819T
  ransition.from @ main.js:856di
  spatch @ main.js:1816r
  efresh @ main.js:1867r
  un @ main.js:1863r
  unRouter @ main.js:25552
  25../components/app @ main.js:23679
  s @ main.js:1e @ 
  main.js:1(ano
  nymous function)
  </code></pre>