dotfiles/templates/React/component-lifecycle.jsx

51 lines
702 B
React
Raw Normal View History

2018-02-12 14:47:28 +01:00
import React, { Component } from 'react';
import PropTypes from 'prop-types';
class componentName extends Component {
constructor(props) {
super(props);
}
componentWillMount() {
}
componentDidMount() {
}
componentWillReceiveProps(nextProps) {
}
shouldComponentUpdate(nextProps, nextState) {
}
componentWillUpdate(nextProps, nextState) {
}
componentDidUpdate(prevProps, prevState) {
}
componentWillUnmount() {
}
render() {
return (
<div>
</div>
);
}
}
componentName.propTypes = {
};
export default componentName;