创建项目:
    cmd

    1. npx create-react-app “文件名”

    React生命周期

    image.png