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'; | |
export default class Row extends Component { | |
render() { | |
return( | |
<div> | |
Mahesh | |
</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
console.log(%c Stop!', 'font-weight: bold; font-size: 50px;color: red; text-shadow: 1px 1px 0px black, 1px -1px 0px black,-1px 1px 0px black, -1px -1px 0px black;'); |
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
<div class="tree-cleansheet active" id="createTreeTabContainer"> | |
<form action=""> | |
<div class="add-on-header row"> | |
<div class="table-action"> | |
<button class="undo-btn" id="undoBtn"> | |
<i class="undo"></i> | |
<span>Undo</span> | |
</button> | |
<button class="redo-btn" id="redoBtn"> | |
<i class="redo"></i> |
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
{ | |
"prime": "con", | |
"number_set": { | |
"balancesheet": [ | |
[ | |
"Share Capital", | |
{ | |
"2008-03-31": 286, | |
"2009-03-31": 286, | |
"2014-03-31": 286, |
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
class ContraMusicPlayer extends React.Component | |
constructor(props) { | |
super(props); | |
this.state = { | |
volume: 70, | |
status: 'pause' | |
} | |
} | |
ContraMusicPlayer.defaultProps = { | |
theme: 'dark' |
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
class ContraMusicPlayer extends React.Component | |
constructor(props) { | |
super(props); | |
this.state = { | |
volume: 70, | |
status: 'pause' | |
} | |
} | |
ContraMusicPlayer.defaultProps = { | |
theme: 'dark' |
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
shouldComponentUpdate(nextProps, nextState) { | |
let shouldUpdate = this.props.status !== nextProps.status; | |
return shouldUpdate; | |
} |
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
componentWillUpdate(nextProps, nextState) { | |
} |
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
componentDidUpdate(prevProps, prevState) { | |
} |
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
componentWillReceiveProps(nextProps) { | |
if (this.props.status !== nextProps.status) { | |
this.setState({ | |
status: nextProps.status | |
}); | |
} | |
} |
OlderNewer