{"id":19225939,"url":"https://github.com/thoriqdharmawan/element-helpers","last_synced_at":"2026-04-21T09:33:18.352Z","repository":{"id":55632938,"uuid":"310597165","full_name":"thoriqdharmawan/element-helpers","owner":"thoriqdharmawan","description":"Custom Hooks for your React Element 🌟🌟","archived":false,"fork":false,"pushed_at":"2020-12-16T16:14:57.000Z","size":1182,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-23T14:33:16.114Z","etag":null,"topics":["custom-hooks","helpers","reactjs"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/element-helpers","language":"HTML","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/thoriqdharmawan.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":"2020-11-06T12:54:55.000Z","updated_at":"2024-01-20T13:25:38.000Z","dependencies_parsed_at":"2022-08-15T05:00:46.480Z","dependency_job_id":null,"html_url":"https://github.com/thoriqdharmawan/element-helpers","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thoriqdharmawan/element-helpers","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thoriqdharmawan%2Felement-helpers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thoriqdharmawan%2Felement-helpers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thoriqdharmawan%2Felement-helpers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thoriqdharmawan%2Felement-helpers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thoriqdharmawan","download_url":"https://codeload.github.com/thoriqdharmawan/element-helpers/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thoriqdharmawan%2Felement-helpers/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32085530,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-21T06:27:27.065Z","status":"ssl_error","status_checked_at":"2026-04-21T06:27:21.250Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["custom-hooks","helpers","reactjs"],"created_at":"2024-11-09T15:16:51.313Z","updated_at":"2026-04-21T09:33:18.331Z","avatar_url":"https://github.com/thoriqdharmawan.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Helper for your React Element :star2::star2:\n\n* [NPM](https://www.npmjs.com/package/element-helpers) here\n* [GitHub](https://github.com/thoriqdharmawan/element-helpers) here\n* [Live Code](https://github.com/thoriqdharmawan/element-helpers/blob/main/src/App.js) here\n\n### Installation\n\n```\nnpm i element-helpers\n```\n\n### Usage\n\n```javascript\nimport { useGetDimensions } from \"element-helpers\";\n\nfunction App() {\n  const [refNode, { width, height }] = useGetDimensions();\n\n  console.log(\"height : \", height); // 100\n  console.log(\"width : \", width); // 300\n\n  return (\n    \u003cdiv\n      ref={refNode}\n      style={{ width: 300, height: 100, backgroundColor: \"red\" }}\n    /\u003e\n  );\n}\n\nexport default App;\n\n```\n\n\n### Props\n\nName | Required | Information\n---- | ----- | ----\nrefNode | true | You can change the name\nwidth | false\nheight | false\nbottom | false\nleft | false\nright | false\ntop | false\nx | false\ny | false","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthoriqdharmawan%2Felement-helpers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthoriqdharmawan%2Felement-helpers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthoriqdharmawan%2Felement-helpers/lists"}