text: import React, {Component} from 'react';
  import {  Panel,Form,FormGroup,FormControl,ControlLabel } from 'react-bootstrap';
  
  class Report extends Component {
  
  	constructor(props) {
  		super(props);
  		this.state = {
  			report: [],
  			value:'',
  			target:'',
  		}
  		this.handleChange = this.handleChange.bind(this);
  		this.handleSubmit = this.handleSubmit.bind(this);
  		this.handlePrev = this.handlePrev.bind(this);
  		this.handleNext = this.handleNext.bind(this);
  	}
  
  	handleChange(event) {
    this.setState({target: event.target.value});
  		if (event.target.name === 'user') {
  			this.setState({user: event.target.value});
  		} else {
  			this.setState({password: event.target.value});
  		}
  	}
  
  	handleSubmit(event) {
  		event.preventDefault();
  	}
  
  	handlePrev(event) {
  		event.preventDefault();
  		this.setState({isAuthenticated: false});
  	}
  	handleNext(event) {
  		event.preventDefault();
  		this.setState({isAuthenticated: false});
  	}
  
  	displayForm() {
  		return (
  			<Form onSubmit={this.handleSubmit}>
  				<FormGroup controlId="formItem">
  					 <ControlLabel>Item</ControlLabel>
  						<FormControl type="text" placeholder="Item" value={this.state.target} onChange={this.handleChange}/>
  				</FormGroup>
  			</Form>
  		)
  	}
  
  	displayItem() {
  		return (
  			<Panel>
  				<Panel.Heading>
  					<Panel.Title componentClass="h3">Reports</Panel.Title>
  				</Panel.Heading>
  				<Panel.Body>
  					 {this.displayForm()}
  				</Panel.Body>
  			</Panel>
  		)
  	}
  
  	displayReport() {
  		return (
  			<Panel>
  				<Panel.Heading>
  					<Panel.Title componentClass="h3">Report</Panel.Title>
  				</Panel.Heading>
  				<Panel.Body>
  					<p>Items: {this.state.report.length}</p>
  					<p>Target: {this.state.target}</p>
  				</Panel.Body>
  			</Panel>
  		)
  	}
  
  	render() {
  		return (
  			<div className="App-container">
  			 {this.displayReport()}	
  				{this.displayItem()}
  			</div>
  		)
  	}
  }
  
  export default Report;