{"id":20737992,"url":"https://github.com/stephencookdev/grandmas-own-jsx","last_synced_at":"2026-04-25T07:33:29.730Z","repository":{"id":66062943,"uuid":"253263957","full_name":"stephencookdev/grandmas-own-jsx","owner":"stephencookdev","description":"JSX, just like Grandma used to make 👵","archived":false,"fork":false,"pushed_at":"2020-04-05T19:27:49.000Z","size":78,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-25T19:14:08.843Z","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/stephencookdev.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":"2020-04-05T15:13:13.000Z","updated_at":"2023-03-17T18:13:23.000Z","dependencies_parsed_at":"2023-04-08T19:03:39.120Z","dependency_job_id":null,"html_url":"https://github.com/stephencookdev/grandmas-own-jsx","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/stephencookdev/grandmas-own-jsx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephencookdev%2Fgrandmas-own-jsx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephencookdev%2Fgrandmas-own-jsx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephencookdev%2Fgrandmas-own-jsx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephencookdev%2Fgrandmas-own-jsx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stephencookdev","download_url":"https://codeload.github.com/stephencookdev/grandmas-own-jsx/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephencookdev%2Fgrandmas-own-jsx/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32254696,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T04:23:17.126Z","status":"ssl_error","status_checked_at":"2026-04-25T04:21:53.360Z","response_time":59,"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":[],"created_at":"2024-11-17T06:16:09.844Z","updated_at":"2026-04-25T07:33:29.713Z","avatar_url":"https://github.com/stephencookdev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Grandma's Own JSX 👵\n\nYou no longer need to write JSX like all your boring colleagues.\n\nLook over your shoulder, at your colleague's code. You see this:\n\n```\nimport React from 'react';\n\nconst MyComponent = () =\u003e {\n  return (\n    \u003cdiv className=\"container\"\u003e\n      \u003ch1\u003eA Boring Component\u003c/h1\u003e\n      \u003cp\u003eReadable syntax is for suckers.\u003c/p\u003e\n    \u003c/div\u003e\n  );\n}\n```\n\nNow, chuckle to yourself. Revel in your superiority, as you look back at your own, equivalent code:\n\n```\n//👵📚\n// 🎁 div className=\"container\"\n// 🎩 h1\n// 💖 _ \"A Lovely Component\"\n// 👕 p\n// 👵 _ \"Syntax just like in one of Grandma's old recipe book\"\n\nimport React from 'react';\n\nconst MyComponent = () =\u003e {\n  return \"👵\";/*\n    🎁\n      🎩\n        💖\n      👕\n        👵\n  */\n}\n```\n\n## Demo\n\nYou can [mess about with a demo here](https://codesandbox.io/s/like-grandma-made-jgri5).\n\n## How Do I Use It?\n\n### Step 1\n\nInstall it:\n\n```\nnpm install --save grandmas-own-jsx\n```\n\n### Step 2\n\nAdd this to your `.babelrc` file:\n\n```\n\"plugins\": [\n  \"grandmas-own-jsx\"\n]\n```\n\nor, depending on your Babel version:\n\n```\n\"plugins\": [\n  \"module:grandmas-own-jsx\"\n]\n```\n\n### Step 3\n\nConsider your life choices.\n\n## Explain The Syntax?\n\nAt the start of your file, you declare a list of recipes. You use a `'👵📚'` to signal you're starting the recipe book.\n\n```\n//👵📚\n// 🥰 div className=\"foo\" title=\"bar\"  \u003c--  the emoji is the key we will use, followed by the attributes assigned to it\n// 🥳 MyComponent className=foo  \u003c--  we can also use variables and custom components\n```\n\nTo then actually render those components, use a `'👵'` to signal that we're about to reference Grandma's recipes.\n\nThen, we show what the DOM structure should be, showing what is a child of what.\n\n```\nconst MyApp = '👵';/*\n  🥰\n    🥳\n*/\n```\n\n## Why The Whole 'Grandma' Thing?\n\nI really liked the joke of \"Grandma's Old Recipe Book\", since there's a reference list at the top. As I started to write this README I realised it really wasn't that funny. Covid-19 is testing me.\n\n![Picture of the Grandma from Windwaker, making soup](./grandmaWindwaker.jpg)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstephencookdev%2Fgrandmas-own-jsx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstephencookdev%2Fgrandmas-own-jsx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstephencookdev%2Fgrandmas-own-jsx/lists"}