{"id":24534823,"url":"https://github.com/arunghosh/react-sequence","last_synced_at":"2025-10-04T12:41:38.494Z","repository":{"id":56481285,"uuid":"84345179","full_name":"arunghosh/react-sequence","owner":"arunghosh","description":"React component which can aid navigation between set of react components","archived":false,"fork":false,"pushed_at":"2020-11-04T23:14:27.000Z","size":7107,"stargazers_count":5,"open_issues_count":6,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T23:33:41.287Z","etag":null,"topics":["navigation","next","previos","react","sequence"],"latest_commit_sha":null,"homepage":"","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/arunghosh.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":"2017-03-08T16:58:52.000Z","updated_at":"2021-08-30T14:31:46.000Z","dependencies_parsed_at":"2022-08-15T19:31:30.073Z","dependency_job_id":null,"html_url":"https://github.com/arunghosh/react-sequence","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/arunghosh%2Freact-sequence","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arunghosh%2Freact-sequence/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arunghosh%2Freact-sequence/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arunghosh%2Freact-sequence/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arunghosh","download_url":"https://codeload.github.com/arunghosh/react-sequence/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248968741,"owners_count":21191158,"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":["navigation","next","previos","react","sequence"],"created_at":"2025-01-22T11:19:03.946Z","updated_at":"2025-10-04T12:41:33.464Z","avatar_url":"https://github.com/arunghosh.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-sequence\n\nReact component which can aid navigation between a set of react components. The sequence of components will be set as the children(see usage). There are 3 available navigation options now and these will ne injected to the props of the components\n* **gotoNext** - shall navigate to the next component\n* **gotoPrev** - shall navigate to the previous component\n* **gotoKey** - shall navigate to the component specified by the argument\n\n[![Build Status](https://travis-ci.org/arunghosh/react-sequence.svg?branch=master)](https://travis-ci.org/arunghosh/react-sequence)\n\n## Installation\n```\nnpm install --save react-sequence\n```\n\n## Usage\n\n```javascript\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport SeqenceForm from 'react-sequence';\nimport Page1 from './Page1';\nimport Page2 from './Page2';\n\nReactDOM.render(\n  \u003cSeqenceForm\u003e\n    \u003cPage1 key=\"page1\" /\u003e\n    \u003cPage2 key=\"page2\" /\u003e\n  \u003c/SeqenceForm\u003e,\n  document.getElementById('app')\n);\n\n```\n\n**Page2.jsx**\n```javascript\nimport React from 'react';\n\nfunction Page2(props) {\n  return (\n    \u003cdiv\u003e\n      \u003cdiv\u003ePage 2\u003c/div\u003e\n      \u003cbutton onClick={props.gotoPrev}\u003ePrev\u003c/button\u003e\n      \u003cbutton onClick={() =\u003e props.gotoKey('page1')}\u003eNext\u003c/button\u003e\n    \u003c/div\u003e\n  );\n}\n\nexport default Page2\n```\n\n**Page1.jsx**\n```javascript\nimport React from 'react';\n\nfunction Page1(props) {\n  return (\n    \u003cdiv\u003e\n      \u003cdiv\u003ePage 1\u003c/div\u003e\n      \u003cbutton onClick={props.gotoPrev}\u003ePrev\u003c/button\u003e\n      \u003cbutton onClick={props.gotoNext}\u003eNext\u003c/button\u003e\n    \u003c/div\u003e\n  );\n}\n\nexport default Page1\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farunghosh%2Freact-sequence","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farunghosh%2Freact-sequence","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farunghosh%2Freact-sequence/lists"}