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

React Components Template

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/

posted @ 2018-12-26 14:38  xgqfrms  阅读(141)  评论(3编辑  收藏  举报