{"id":19533961,"url":"https://github.com/rafgraph/react-fast-mount","last_synced_at":"2025-04-26T14:34:36.776Z","repository":{"id":66154984,"uuid":"92096624","full_name":"rafgraph/react-fast-mount","owner":"rafgraph","description":"Fast mount slow loading React components","archived":false,"fork":false,"pushed_at":"2020-09-11T21:35:55.000Z","size":200,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-04T13:52:57.423Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://react-fast-mount.rafgraph.dev","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rafgraph.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-22T20:29:41.000Z","updated_at":"2023-03-09T01:40:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"c1c18670-5749-470f-960d-c88b266930fd","html_url":"https://github.com/rafgraph/react-fast-mount","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafgraph%2Freact-fast-mount","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafgraph%2Freact-fast-mount/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafgraph%2Freact-fast-mount/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafgraph%2Freact-fast-mount/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rafgraph","download_url":"https://codeload.github.com/rafgraph/react-fast-mount/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251001273,"owners_count":21520918,"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-11-11T02:11:30.729Z","updated_at":"2025-04-26T14:34:36.689Z","avatar_url":"https://github.com/rafgraph.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Fast Mount\n\n\u003e [Demo website](https://react-fast-mount.rafgraph.dev) (demo code on the [`gh-pages` branch](https://github.com/rafgraph/react-fast-mount/tree/gh-pages))\n\nFast mount slow loading components for improved responsiveness and perceived performance. This allows a site to respond instantly to user input, even if it is to show a blank screen while the component is loading, so the site is perceived as fast and responsive.\n\nThe difference is most noticeable on mobile devices, especially slower devices.\n\n### Usage\n\nReact Fast Mount is a high order component (HOC) - just wrap your component in the\nFast Mount function before export, e.g. `export default fastMount(MyComponent);`.\n\n```shell\n$ yarn add react-fast-mount\n# OR\n$ npm install --save react-fast-mount\n```\n\n```js\nimport React from 'react';\nimport fastMount from 'react-fast-mount';\n\nclass MyComponent extends React.Component {\n  ...\n  render() {\n    ...\n  }\n}\n\n// wrap your component in fastMount to fast mount it\nexport default fastMount(MyComponent);\n\n//  OR\n\n// you can optionally provide a ReactElement as a second argument to use as a container\n// for MyComponent - the container will be rendered on the first render (fast),\n// and then MyComponent will be rendered inside of it on the second render\nexport default fastMount(MyComponent, \u003cdiv style={{ height: '200px' }} /\u003e)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frafgraph%2Freact-fast-mount","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frafgraph%2Freact-fast-mount","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frafgraph%2Freact-fast-mount/lists"}