Created
January 27, 2018 20:16
-
-
Save YKalashnikov/6a2d2c13fd49a21ecec591b06a7d61ff to your computer and use it in GitHub Desktop.
REACT...I am having a problem to convert time ("YYYY-MM-DD HH:mm:ss")..I would appreciate any help
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
https://codepen.io/AK-47/pen/goVORq |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
class UserRow extends React.Component {
render(){
var url='https://www.freecodecamp.com/';
}
}
class TableContents extends React.Component{
render(){
var dataArr=this.props.data;
var users='';
// var showDate=(this.props.update).format("YYYY-MM-DD HH:mm:ss");
}
}
class Table extends React.Component{
constructor(props){
super(props);
this.state={
data:[],
sort:'recent'
}
}
loadData(){
$.get(this.props.source, function(result){
this.setState({
data:result
}
componentWillMount(){
this.loadData();
}
handleClick(sortBy,event){
this.setState({
sort:sortBy
})
}
render(){
var recentClass="sort-button"
var allClass='sort-button'
if(this.state.sort=='recent'){
recentClass='sort-button sorted'
}else{
allClass='sort-button sorted'
}
return(
)
}
}
ReactDOM.render(
Leaderboard