Day 27
Following a tut for React.JS. This is interesting.
#CodingPhase #TheCodingWay #365CodingPhaseChallenge
**********
getProjects(){
this.setState({projects: [
{
id:uuid.v4(),
title: 'Business Website',
category: 'Web Deisgn'
},
{
id:uuid.v4(),
title: 'Social App',
category: 'Mobile Development'
},
{
id:uuid.v4(),
title: 'Ecommerce Shopping Cart',
category: 'Web Development'
}
]});
}
componentWillMount(){
this.getProjects();
this.getTodos();
}
componentDidMount(){
this.getTodos();
}
#CodingPhase #TheCodingWay #365CodingPhaseChallenge
**********
getProjects(){
this.setState({projects: [
{
id:uuid.v4(),
title: 'Business Website',
category: 'Web Deisgn'
},
{
id:uuid.v4(),
title: 'Social App',
category: 'Mobile Development'
},
{
id:uuid.v4(),
title: 'Ecommerce Shopping Cart',
category: 'Web Development'
}
]});
}
componentWillMount(){
this.getProjects();
this.getTodos();
}
componentDidMount(){
this.getTodos();
}
Comments
Post a Comment