{"id":21960349,"url":"https://github.com/adrienjoly/react-1poll","last_synced_at":"2026-05-07T09:33:42.256Z","repository":{"id":65480759,"uuid":"61799008","full_name":"adrienjoly/react-1poll","owner":"adrienjoly","description":"A simple React component to make doodle-like collaborative polls.","archived":false,"fork":false,"pushed_at":"2016-07-11T17:05:48.000Z","size":1747,"stargazers_count":2,"open_issues_count":3,"forks_count":1,"subscribers_count":1,"default_branch":"gh-pages","last_synced_at":"2025-10-28T19:33:38.702Z","etag":null,"topics":["doodle","poll","react","react-component"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/react-1poll","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/adrienjoly.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}},"created_at":"2016-06-23T11:10:46.000Z","updated_at":"2017-10-27T12:12:49.000Z","dependencies_parsed_at":"2023-01-25T09:25:12.862Z","dependency_job_id":null,"html_url":"https://github.com/adrienjoly/react-1poll","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/adrienjoly/react-1poll","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrienjoly%2Freact-1poll","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrienjoly%2Freact-1poll/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrienjoly%2Freact-1poll/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrienjoly%2Freact-1poll/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adrienjoly","download_url":"https://codeload.github.com/adrienjoly/react-1poll/tar.gz/refs/heads/gh-pages","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrienjoly%2Freact-1poll/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32731507,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T02:14:30.463Z","status":"ssl_error","status_checked_at":"2026-05-07T02:14:29.405Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["doodle","poll","react","react-component"],"created_at":"2024-11-29T09:58:12.347Z","updated_at":"2026-05-07T09:33:42.240Z","avatar_url":"https://github.com/adrienjoly.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-1poll\n\nA simple [Doodle](http://doodle.com)-like poll component that makes it easy for contributors to add more options. Star it on [npm](https://www.npmjs.com/package/react-1poll) and on [github](https://github.com/adrienjoly/react-1poll).\n\nMade with [React.js](https://facebook.github.io/react/) and [Material-UI](material-ui.com). Thanks to [Romain Dardour](http://twitter.com/rdardour) for his help!\n\n## Contents\n\nThe `gh-pages` branch of this repository contains:\n\n- The `1poll` react component, as defined in [the component subdirectory](https://github.com/adrienjoly/1poll/tree/gh-pages/component);\n- A [demo page](http://adrienjoly.com/react-1poll/demo) to demonstrate the use of the `1poll` component.\n\n## Demo / examples of use\n\n- [Official demo](http://adrienjoly.com/react-1poll/demo)\n- [1task's landing page](http://1task.org/) (and [source code](https://github.com/adrienjoly/1task))\n\n## How to install and use\n\n### Using npm\n\nFirst, install it in your project's directory:\n\n    npm install react-1poll\n\nThen, integrate it in your javascript project:\n\n```jsx\nvar PollForm = require('./PollForm.jsx');\nvar options = [\n  { name: 'Option A', defaultCheck: true },\n  { name: 'Option B' },\n  { name: 'Option C' }\n];\nfunction onValidSubmit(selectedItems) {\n  assert.equal(selectedItems, [ 'Option A' ]);\n}\nReactDOM.render(\u003cPollForm\n  options={options}\n  onNewOption={console.log}\n  onValidSubmit={onValidSubmit} /\u003e, appDiv);\n```\n\n## Component API reference\n\nSee [1poll component's README.md file](https://github.com/adrienjoly/react-1poll/tree/gh-pages/component).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadrienjoly%2Freact-1poll","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadrienjoly%2Freact-1poll","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadrienjoly%2Freact-1poll/lists"}