Following this code- What can I do for output if each line gape is very close, also box is very close (box means where you fill up). Also buttons gaps are close(For example- under the page you have three buttons- next, beack, edit). So how can I write each word has enough space and enough size. using react, please write a code

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

 

Following this code- What can I do for output if each line gape is very close, also box is very close (box means where you fill up). Also buttons gaps are close(For example- under the page you have three buttons- next, beack, edit). So how can I write each word has enough space and enough size. using react, please write a code

 

 

export default class App extends React.Component {
 render() {
  return (
   <div>
    <MainTitle />
    <ContactForm />
   </div>
  )
 }

}

handleSubmit() {
this.setState({
display: true
})
}
displayButtons() {
const back
<div>
value-"Back" />
cinput type="button" onClick-{this.handleSubmit)
cinput type="button" onClick-{this.handleSubmit)
value-"Edit" />
<input type="button" onclick-(this.handleSubmit) value-"Delete" /></div>
return back;
}
render() {
return (
<div>
<form>
<div className="form-group">
ch1> Inventory </h1>
<label for-"nameInput">Name</label>
<input type="text" name-"name" value-(this.state.name) onChange-(this.handleNameChange)
className="form-control" id-"nameInput" placeholder-"Name" />
)
</div>
<div className="form-group">
<label for="storageType">Storage Type</label>
<input name="storage" type="text" value-(this.state.storageType) onChange-(this.handleStorageTypeChange)
className="form-control" id="storageType" placeholder-"Storage Type" />
</div>
<div className-"form-group">
<label for-"nameInput">Max Item Capacity</label>
<input type="text" name-"maxitem" value-(this.state.maxItem) onChange-(this.handleMaxItemChange)
className="form-control" id-"nameInput" placeholder-"Max Item Capacity" />
</div>
<div className="form-group">
<h1> Resources </h1>
<label for-"nameInput">Resource Name</label>
<input type="text" name-"resourceName" value-{this.state.resourceName) onChange-(this.handleResourceNameChange)
className="form-control" id-"nameInput" placeholder-"Resource Name" />
</div>
<div className="form-group">
<label for-"nameInput">Resource Type</label>
<input name-"resourceType" value-(this.state.resourceType) onChange-(this.handleResourceTypeChange)
className="form-control" id-"nameInput" placeholder-"Resource Type" />
</div>
<div className="form-group">
<label for-"nameInput">Max Number of Resources</label>
cinput name-"maxResource" value-{this.state.maxResource) onChange-(this.handleMaxResourceChange)
className="form-control" id-"nameInput" placeholder-"Max Number of Resources" />
</div>
<div className="form-group">
<label for-"nameInput">Current Number of Resources</label>
<input type="text" name-"currentResource" value-(this.state.currentResource) onChange-(this.handleCurrent ResourceChange)
className="form-control" id-"nameInput" placeholder-"Current number of Resources" />
</div>
cinput type="button" onclick-{this.handleSubmit) value-"Submit form" />
{this.state.display? this.displayButtons(): "*}
</form>
</div>
}
class MainTitle extends React.Component {
render() {
return (
ch1> Add Inventory </h1>
export default class App extends React.Component {
render() {
return (
edivs
Transcribed Image Text:handleSubmit() { this.setState({ display: true }) } displayButtons() { const back <div> value-"Back" /> cinput type="button" onClick-{this.handleSubmit) cinput type="button" onClick-{this.handleSubmit) value-"Edit" /> <input type="button" onclick-(this.handleSubmit) value-"Delete" /></div> return back; } render() { return ( <div> <form> <div className="form-group"> ch1> Inventory </h1> <label for-"nameInput">Name</label> <input type="text" name-"name" value-(this.state.name) onChange-(this.handleNameChange) className="form-control" id-"nameInput" placeholder-"Name" /> ) </div> <div className="form-group"> <label for="storageType">Storage Type</label> <input name="storage" type="text" value-(this.state.storageType) onChange-(this.handleStorageTypeChange) className="form-control" id="storageType" placeholder-"Storage Type" /> </div> <div className-"form-group"> <label for-"nameInput">Max Item Capacity</label> <input type="text" name-"maxitem" value-(this.state.maxItem) onChange-(this.handleMaxItemChange) className="form-control" id-"nameInput" placeholder-"Max Item Capacity" /> </div> <div className="form-group"> <h1> Resources </h1> <label for-"nameInput">Resource Name</label> <input type="text" name-"resourceName" value-{this.state.resourceName) onChange-(this.handleResourceNameChange) className="form-control" id-"nameInput" placeholder-"Resource Name" /> </div> <div className="form-group"> <label for-"nameInput">Resource Type</label> <input name-"resourceType" value-(this.state.resourceType) onChange-(this.handleResourceTypeChange) className="form-control" id-"nameInput" placeholder-"Resource Type" /> </div> <div className="form-group"> <label for-"nameInput">Max Number of Resources</label> cinput name-"maxResource" value-{this.state.maxResource) onChange-(this.handleMaxResourceChange) className="form-control" id-"nameInput" placeholder-"Max Number of Resources" /> </div> <div className="form-group"> <label for-"nameInput">Current Number of Resources</label> <input type="text" name-"currentResource" value-(this.state.currentResource) onChange-(this.handleCurrent ResourceChange) className="form-control" id-"nameInput" placeholder-"Current number of Resources" /> </div> cinput type="button" onclick-{this.handleSubmit) value-"Submit form" /> {this.state.display? this.displayButtons(): "*} </form> </div> } class MainTitle extends React.Component { render() { return ( ch1> Add Inventory </h1> export default class App extends React.Component { render() { return ( edivs
import React from 'react';
class Contactform extends React.Component (
super (props);
this.state {
name: **
storageType:
maxitem:
resourceName:
maxResource:
resourceType:
currentResource:
display: false
};
this.handleNameChange this.handleNameChange.bind(this);
this.handlestorageTypeChange
this.handleStorageTypeChange.bind(this);
this.handleMaxItemChange this.handleMaxItemChange.bind(this);
this.handleResourceNameChange this.handleResourceNameChange.bind(this);
this.handleResourceTypeChange this.handleResourceTypeChange.bind(this);
this.handleMaxResourceChange this.handleMaxResourceChange.bind(this);
this.handleCurrent ResourceChange this.handleCurrent ResourceChange.bind(this);
this.handleSubmit
}
handleNameChange(event) {
const target= event.target;
const value - target.type = 'checkbox'? target.checked target.value;
const name target.name;
this.setState({
name: value
})
console.log('Change detected. State updated" + name
handleStorageTypeChange(event)
const target - event.target;
const value - target.type =
this.setState({
storageType: value
})
this.setState({
maxitem: value
})
handleMaxItemChange(event) {
const target
event.target;
const value - target.type = 'checkbox'? target.checked: target.value;
})
this.handleSubmit.bind(this);
handleResourceNameChange(event) {
this.setState({
resourceName: event.target.value
})
handleResourceTypeChange(event) {
}
{
this.setState({
resourceType: event.target.value
'checkbox'? target.checked: target.value;
})
handleMaxResourceChange(event) {
this.setState({
maxResource: event.target.value
})
}
handleCurrent ResourceChange(event) {
this.setState({
current Resource: event.target.value
handleSubmit() {
this.setState({
dienlau trun
+ value);
Transcribed Image Text:import React from 'react'; class Contactform extends React.Component ( super (props); this.state { name: ** storageType: maxitem: resourceName: maxResource: resourceType: currentResource: display: false }; this.handleNameChange this.handleNameChange.bind(this); this.handlestorageTypeChange this.handleStorageTypeChange.bind(this); this.handleMaxItemChange this.handleMaxItemChange.bind(this); this.handleResourceNameChange this.handleResourceNameChange.bind(this); this.handleResourceTypeChange this.handleResourceTypeChange.bind(this); this.handleMaxResourceChange this.handleMaxResourceChange.bind(this); this.handleCurrent ResourceChange this.handleCurrent ResourceChange.bind(this); this.handleSubmit } handleNameChange(event) { const target= event.target; const value - target.type = 'checkbox'? target.checked target.value; const name target.name; this.setState({ name: value }) console.log('Change detected. State updated" + name handleStorageTypeChange(event) const target - event.target; const value - target.type = this.setState({ storageType: value }) this.setState({ maxitem: value }) handleMaxItemChange(event) { const target event.target; const value - target.type = 'checkbox'? target.checked: target.value; }) this.handleSubmit.bind(this); handleResourceNameChange(event) { this.setState({ resourceName: event.target.value }) handleResourceTypeChange(event) { } { this.setState({ resourceType: event.target.value 'checkbox'? target.checked: target.value; }) handleMaxResourceChange(event) { this.setState({ maxResource: event.target.value }) } handleCurrent ResourceChange(event) { this.setState({ current Resource: event.target.value handleSubmit() { this.setState({ dienlau trun + value);
Expert Solution
steps

Step by step

Solved in 4 steps with 7 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY