dotfiles/templates/React/component-lifecycle.jsx
2018-02-12 14:47:28 +01:00

51 lines
702 B
JavaScript

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;