{"id":16978754,"url":"https://github.com/srph/react-dynamic-select","last_synced_at":"2026-04-17T00:02:42.574Z","repository":{"id":75646716,"uuid":"99482835","full_name":"srph/react-dynamic-select","owner":"srph","description":"[WIP] Create native `select` elements with dynamic options (usually fetched from AJAX).","archived":false,"fork":false,"pushed_at":"2017-08-06T11:46:03.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-26T17:15:47.592Z","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/srph.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-08-06T11:45:40.000Z","updated_at":"2017-08-06T11:46:04.000Z","dependencies_parsed_at":"2023-06-07T05:30:17.368Z","dependency_job_id":null,"html_url":"https://github.com/srph/react-dynamic-select","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/srph%2Freact-dynamic-select","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srph%2Freact-dynamic-select/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srph%2Freact-dynamic-select/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srph%2Freact-dynamic-select/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/srph","download_url":"https://codeload.github.com/srph/react-dynamic-select/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244880550,"owners_count":20525511,"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-10-14T01:44:07.771Z","updated_at":"2026-04-17T00:02:42.352Z","avatar_url":"https://github.com/srph.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Dynamic Select\n[WIP] Create native `select` elements with dynamic options (usually fetched from AJAX).\n\n## Why?\nAutocomplete components like react-select work great, but too heavy for simple use-cases!\n\n## Installation\n```\nnpm i @srph/react-dynamic-select\n```\n\n## Usage\n```js\nimport React from 'react';\nimport DynamicSelect from '@srph/react-dynamic-select';\nimport axios from 'axios';\n\nclass App extends React.Component {\n  state = {\n    color: ''\n  }\n\n  render() {\n    return (\n      \u003cdiv\u003e\n        \u003cdiv className=\"form-group\"\u003e\n          \u003clabel\u003eFavorite Color\u003c/label\u003e\n          \u003cDynamicSelect options={this.options} value={this.state.color} onChange={this.handleChange} /\u003e\n        \u003c/div\u003e\n      \u003c/div\u003e\n    );\n  }\n\n  options() {\n    axios.get('x').then(res =\u003e {\n      return res.data.colors;\n    });\n  }\n\n  handleChange(evt) {\n    this.setState({ color: evt.target.value });\n  }\n}\n\nexport default App;\n```\n\n## API Documentation\nHere's a list of props you may use to customize the component for your use-case:","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrph%2Freact-dynamic-select","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsrph%2Freact-dynamic-select","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrph%2Freact-dynamic-select/lists"}