This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ '{"name":"Akexorcist","age":"28","position":"Android Developer","description":"birthdate': '25-12-1989', | |
favourite: 'coding coding and coding', | |
company: 'Nextzy Technologies', | |
website: 'http://www.akexorcist.com/","awesome":true}' } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
const queryString = require('query-string') | |
... | |
axios.post(url, queryString.stringify(requestBody), config) | |
.then((result) => { | |
// Do somthing | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"age": "28", | |
"awesome": "true", | |
"description": "birthdate=25-12-1989&favourite=coding%20coding%20and%20coding&company=Nextzy%20Technologies&website=http://www.akexorcist.com/", | |
"name": "Akexorcist", | |
"position": "Android Developer" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react' | |
... | |
class ChildComponent extends Component { | |
... | |
render() { | |
return ( | |
<React.Fragment> | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react' | |
import ChildComponent from './ChildComponent' | |
... | |
class ParentComponent extends Component { | |
constructor(props) { | |
super(props) | |
this.state = { | |
buttonVisibility: false | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react' | |
... | |
class ChildComponent extends Component { | |
... | |
onConfirmClick = () => { | |
const order = ... | |
this.props.confirm(order) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react' | |
import ChildComponent from './ChildComponent' | |
... | |
class ParentComponent extends Component { | |
... | |
onConfirm(order) { | |
// Do something | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
onConfirmClick = () => { | |
if (this.props.confirm) { | |
const order = ... | |
this.props.confirm(order) | |
} | |
} | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react' | |
... | |
class FirstChildComponent extends Component { | |
... | |
onConfirmClick = () => { | |
const order = ... | |
if (this.props.confirm) { | |
this.props.confirm(order) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react' | |
import FirstChildComponent from './FirstChildComponent' | |
import SecondChildComponent from './SecondChildComponent' | |
... | |
class ParentComponent extends Component { | |
constructor(props) { | |
super(props) | |
this.state = { | |
isOrderConfirm: false |