{"id":16234110,"url":"https://github.com/zackify/reactview","last_synced_at":"2025-03-16T12:32:23.902Z","repository":{"id":31943963,"uuid":"35513673","full_name":"zackify/reactview","owner":"zackify","description":"reactview lets you instantly view (and hot reload) any react component in your browser","archived":false,"fork":false,"pushed_at":"2015-08-09T23:38:03.000Z","size":417,"stargazers_count":96,"open_issues_count":0,"forks_count":9,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-02-27T08:54:50.699Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/zackify.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":"2015-05-12T21:31:01.000Z","updated_at":"2022-06-03T16:50:36.000Z","dependencies_parsed_at":"2022-08-24T17:42:21.292Z","dependency_job_id":null,"html_url":"https://github.com/zackify/reactview","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zackify%2Freactview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zackify%2Freactview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zackify%2Freactview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zackify%2Freactview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zackify","download_url":"https://codeload.github.com/zackify/reactview/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243814880,"owners_count":20352037,"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-10T13:15:03.357Z","updated_at":"2025-03-16T12:32:23.556Z","avatar_url":"https://github.com/zackify.png","language":"JavaScript","readme":"##No longer maintained\n\n**Go use [heatpack](https://github.com/insin/react-heatpack), it does the same thing.**\n\n##ReactView\n\n##Install\n\n\tnpm install -g reactview\n\n###Usage\n\nThis is the perfect tool for prototyping React components.\nInstead of setting up webpack to convert ES6 features or setup a server, it's as easy as:\n\n\t\treactview component.jsx\n\nIt'll automagically compile it using webpack and babel, then start a server and open your browser.\nOptionally, you can specify the port as the second argument: `reactview component.jsx 8000`\n\nIt will also read json from stdin and pass them in as component props, eg:\n\n\t\tcat props.json | reactview example.jsx\n\n###Example\n\nThe example component looks like:\n\n\t\timport React from 'react'\n\t\timport Test from './test.css'\n\n\t\texport default class Woah extends React.Component{\n\t\t\trender(){\n\t\t\t\treturn \u003cdiv className=\"test\"\u003ethis is sick\u003c/div\u003e\n\t\t\t}\n\t\t}\n\nNo need to add React.render. CSS importing is also included. \n\n**How do I set what gets rendered?**\n\nYou need to specify `export default` on the component you want rendered. \nIn 0.5.2, you can explicitly pass the component / class name you want\nrendered: `reactview component.jsx ComponentName`. \nUseful if you're importing components and there are multiple exports.\n\n##Contributing\n\nTo modify reactview, take a look at src/reactview.js. After making changes you'll need to do\n`npm run build` then `npm install . -g` if you're wanting to access it without doing `node bin/reactview.js`\n\n###Todos\n\n- passing props like `--props {test: 'value'}`\n- allow .js files to be compiled (only .jsx is supported now)\n- display error if component doesn't have a default export\n- whatever you send in a pull request\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzackify%2Freactview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzackify%2Freactview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzackify%2Freactview/lists"}