This file contains hidden or 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 SecondChildComponent extends Component { | |
| ... | |
| render() { | |
| return ( | |
| <React.Fragment> | |
| {this.props.isOrderConfirm ? 'Your order is inprogress.' : ''} |
This file contains hidden or 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 UserCard extends Component { | |
| constructor(props) { | |
| super(props); | |
| this.state = { | |
| name: 'Akexorcist' | |
| } | |
| } |
This file contains hidden or 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 UserCard extends Component { | |
| constructor(props) { | |
| super(props); | |
| this.state = { | |
| name: 'Akexorcist' |
This file contains hidden or 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 UserCard extends Component { | |
| constructor(props) { | |
| super(props); | |
| this.state = { | |
| name: 'Akexorcist' |
This file contains hidden or 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
| var UserCard = React.createClass({ | |
| onButtonClick: function() { | |
| ... | |
| }, | |
| render: function() { | |
| return ( | |
| <div> | |
| <button onClick={this.onButtonClick}>Confirm</button> | |
| </div> | |
| ) |
This file contains hidden or 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
| val user = User("Akexorcist").also { | |
| it.age = 17 | |
| it.job = "Android Developer" | |
| it.company = "Nextzy Technologies" | |
| } |
This file contains hidden or 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
| val user = User("Akexorcist") | |
| user.age = 17 | |
| user.job = "Android Developer" | |
| user.company = "Nextzy Technologies" |
This file contains hidden or 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
| val user1 = User("Akexorcist").also { | |
| it.age = 17 | |
| it.job = "Android Developer" | |
| it.company = "Nextzy Technologies" | |
| } | |
| val user2 = User("Android Studio").also { | |
| it.age = 5 | |
| it.job = "Integrated Development Environment" | |
| it.company = "Google & JetBrains | |
| } |
This file contains hidden or 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
| val user1 = User("Akexorcist") | |
| user1.age = 17 | |
| user1.job = "Android Developer" | |
| user1.company = "Nextzy Technologies" | |
| val user2 = User("Android Studio") | |
| user2.age = 5 | |
| user2.job = "integrated Development Environment" | |
| user2.company = "Google & JetBrains |
This file contains hidden or 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
| var userResponse = ... | |
| userResponse.let { | |
| // Do something | |
| } |