{"id":23457261,"url":"https://github.com/guoyongfeng/react-example","last_synced_at":"2025-04-11T10:20:16.879Z","repository":{"id":35287066,"uuid":"39548031","full_name":"GuoYongfeng/react-example","owner":"GuoYongfeng","description":null,"archived":false,"fork":false,"pushed_at":"2015-07-23T05:44:31.000Z","size":328,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-15T22:45:14.868Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GuoYongfeng.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-23T05:43:02.000Z","updated_at":"2015-07-23T05:44:32.000Z","dependencies_parsed_at":"2022-09-10T14:00:47.242Z","dependency_job_id":null,"html_url":"https://github.com/GuoYongfeng/react-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GuoYongfeng%2Freact-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GuoYongfeng%2Freact-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GuoYongfeng%2Freact-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GuoYongfeng%2Freact-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GuoYongfeng","download_url":"https://codeload.github.com/GuoYongfeng/react-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248373460,"owners_count":21093161,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-24T04:44:44.206Z","updated_at":"2025-04-11T10:20:16.859Z","avatar_url":"https://github.com/GuoYongfeng.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React基本学习及示例\n\n## jsx语法写代码\n\n## 用React些组件component\n* this.props\n* this.state\n* React.findDOMNode\n* this.props.children\n\n##  form表单\n* DOM事件\n\n## state状态机\n\t* getInitialState\n\t* this.state \u0026\u0026 this.setState\n## 组件生命周期\n\n\u003e 组件的生命周期分成三个状态,React为每个状态都提供了两种处理函数，will 函数在进入状态之前调用，did函数在进入状态之后调用，三种状态共计五种处理函数。\n\n* Mounting：已插入真实 DOM\n\t* componentWillMount()\n\t* componentDidMount()\n* Updating：正在被重新渲染\n\t* componentWillUpdate(object nextProps, object nextState)\n\t* componentDidUpdate(object prevProps, object prevState)\n* Unmounting：已移出真实 DOM\n\t* componentWillUnmount()\n\n\u003e 两种特殊状态的处理函数\n\n* componentWillReceiveProps(object nextProps)\n\t* 已加载组件收到新的参数时调用\n* shouldComponentUpdate(object nextProps, object nextState)\n\t* 组件判断是否重新渲染时调用","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguoyongfeng%2Freact-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fguoyongfeng%2Freact-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguoyongfeng%2Freact-example/lists"}