{"id":16594105,"url":"https://github.com/jsdf/react-shallow-render","last_synced_at":"2025-06-15T11:32:51.139Z","repository":{"id":66018907,"uuid":"42447921","full_name":"jsdf/react-shallow-render","owner":"jsdf","description":"Convenience function for React Shallow Rendering","archived":false,"fork":false,"pushed_at":"2015-10-17T00:32:02.000Z","size":136,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-06T06:40:54.652Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jsdf.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":"2015-09-14T12:42:58.000Z","updated_at":"2015-09-14T12:44:08.000Z","dependencies_parsed_at":"2023-02-19T21:30:24.607Z","dependency_job_id":null,"html_url":"https://github.com/jsdf/react-shallow-render","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsdf%2Freact-shallow-render","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsdf%2Freact-shallow-render/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsdf%2Freact-shallow-render/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsdf%2Freact-shallow-render/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jsdf","download_url":"https://codeload.github.com/jsdf/react-shallow-render/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242251053,"owners_count":20096922,"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-11T23:45:11.158Z","updated_at":"2025-03-06T17:21:50.186Z","avatar_url":"https://github.com/jsdf.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-shallow-render\nConvenience function for React Shallow Rendering\n\n```js\nimport assert from 'assert';\nimport React from 'react';\nimport shallowRender from 'react-shallow-render';\n\nconst rendered = shallowRender(\u003cdiv className=\"test\" /\u003e);\nassert.equal(rendered.type, 'div');\nassert.equal(rendered.props.className, 'test');\n```\n\nPlease note that as of React 0.14, [shallow rendering won't render\nprimitives](https://github.com/facebook/react/issues/4721).\n[The good thing is that you don't need it](https://github.com/facebook/react/issues/4721#issuecomment-135923690)\nas you can just do:\n\n```\nvar el = React.createElement('h1', {}, 'Hello');\nconsole.log(el);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsdf%2Freact-shallow-render","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjsdf%2Freact-shallow-render","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsdf%2Freact-shallow-render/lists"}