title: where to put my header and footer tags in reactjs
body: <pre><code>import React, { Component } from 'react';
  import { connect } from 'react-redux';
  import { login } from '../../redux/reducer';
  import './LoginForm.css';
  
  
  
  class LoginForm extends Component {
  
    constructor(props) {
      super(props);
      this.state = {};
      this.onSubmit = this.onSubmit.bind(this);
    }
  
    render() {
      let {username, password} = this.state;
      let {isLoginPending, isLoginSuccess, loginError} = this.props;
  
      return (
            &lt;header&gt;
     &lt;h1&gt;Company Login&lt;/h1&gt;
     &lt;/header&gt;
  
        &lt;form name="loginForm" onSubmit={this.onSubmit}&gt;
  
  
  
  
          &lt;div className="form-group-collection"&gt;
            &lt;div className="form-group"&gt;
  
              &lt;label&gt;Username/User ID:&lt;/label&gt;
              &lt;input name="username" onChange={e =&gt; this.setState({username: e.target.value})} value={username}/&gt;
            &lt;/div&gt;
  
  
            &lt;div className="form-group"&gt;
              &lt;label&gt;Password:&lt;/label&gt;
              &lt;input type="password" name="password" onChange={e =&gt; this.setState({password: e.target.value})} value={password}/&gt;
            &lt;/div&gt;
          &lt;/div&gt;
          &lt;br/&gt;
  
          &lt;input type="submit" value="Login" /&gt;
  
    &lt;/form&gt;
         &lt;footer&gt;Copyright &amp;copy; multihands.com. &lt;/footer&gt;
      )
    }
  
  
  
  
  
  
    onSubmit(e) {
      e.preventDefault();
      let { username, password } = this.state;
      this.props.login(username, password);
      this.setState({
        username: '',
        password: ''
      });
    }
  }
  
  
  const mapStateToProps = (state) =&gt; {
    return {
      isLoginPending: state.isLoginPending,
      isLoginSuccess: state.isLoginSuccess,
      loginError: state.loginError
    };
  }
  
  const mapDispatchToProps = (dispatch) =&gt; {
    return {
      login: (username, password) =&gt; dispatch(login(username, password))
    };
  }
  
  export default connect(mapStateToProps, mapDispatchToProps)(LoginForm);
  </code></pre>
  
  <p>This is my login page i want to add header in my page.. I added it already as shown in the code...But unfortunetly error occurs after running.. Where does I put my header and footer tag in my code.. If we put it in form the code runs..But the css applied to the form is affected by adding the footer and header.. So I need the correct way to place header and footer without intrude my form..</p>