React Different File


#1

Hi, I’m new at programming, and I want to ask hot to make

var Contact = React.createClass({
  render: function() {
      return (
        <div>
          <h2>GOT QUESTIONS?</h2>
          <p>The easiest thing to do is post on
          our <a href="http://forum.kirupa.com">forums</a>.
          </p>
        </div>
      );
    }
});

In different file from index.html (from tutorial https://www.kirupa.com/react/creating_single_page_app_react_using_react_router.htm)
Thanks


#2

To do that, you’ll need to create different JSX files and bundle them together using something like webpack. This article explains how to do that: https://www.kirupa.com/react/setting_up_react_environment.htm

:stuck_out_tongue: