xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

React Components Template


"use strict";

/**
 * 
 * @author xgqfrms
 * @license MIT
 * @copyright xgqfrms
 * @created 2018.01.01
 * @modified 2018.01.01
 * 
 * @description React Components Template
 * @augments 
 * @example 
 * 
 */

import React, { Component } from 'react';
import PropTypes from 'prop-types';

class APP extends Component {
    constructor(props) {
        super(props);

    }

    componentWillMount() {

    }

    componentDidMount() {

    }

    componentWillReceiveProps(nextProps) {

    }

    shouldComponentUpdate(nextProps, nextState) {

    }

    componentWillUpdate(nextProps, nextState) {

    }

    componentDidUpdate(prevProps, prevState) {

    }

    componentWillUnmount() {

    }

    render() {
        return (
            <div>
                <h1> Hello World!</h1>
                <p>React Components Template</p>
            </div>
        );
    }
}

APP.propTypes = {
    title: PropTypes.string,
};

export default APP;


https://codesandbox.io/

原文地址:https://www.cnblogs.com/xgqfrms/p/10179024.html