transforms/__testfixtures__/rename-unsafe-lifecycles/instance-methods.input.js (17 lines of code) (raw):

const React = require('React'); class ClassComponent extends React.Component { componentWillMount() { // componentWillMount } componentDidMount() { // componentDidMount } componentWillUpdate(nextProps, nextState) { // componentWillUpdate } componentDidUpdate(prevProps, prevState) { // componentDidUpdate } componentWillReceiveProps(nextProps) { // componentWillReceiveProps } componentWillUnmount() { // componentWillUnmount } render() { // render } }