{"id":16040786,"url":"https://github.com/flexseth/wordpress-props-and-state","last_synced_at":"2025-06-30T06:04:14.730Z","repository":{"id":151139517,"uuid":"477542423","full_name":"flexseth/wordpress-props-and-state","owner":"flexseth","description":"Working with React props (blockProps) and state (useState) in WordPress.","archived":false,"fork":false,"pushed_at":"2022-11-06T02:06:49.000Z","size":297,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-30T05:09:51.157Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flexseth.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":"2022-04-04T03:56:32.000Z","updated_at":"2022-04-04T03:58:04.000Z","dependencies_parsed_at":"2023-04-10T07:47:56.474Z","dependency_job_id":null,"html_url":"https://github.com/flexseth/wordpress-props-and-state","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/flexseth/wordpress-props-and-state","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexseth%2Fwordpress-props-and-state","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexseth%2Fwordpress-props-and-state/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexseth%2Fwordpress-props-and-state/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexseth%2Fwordpress-props-and-state/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flexseth","download_url":"https://codeload.github.com/flexseth/wordpress-props-and-state/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexseth%2Fwordpress-props-and-state/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262720642,"owners_count":23353447,"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-08T23:21:32.992Z","updated_at":"2025-06-30T06:04:14.698Z","avatar_url":"https://github.com/flexseth.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Props and State sample block \nMade with @wordpress/create-block \n\nPlease note that this code will not work with the current version of the create-block package, due to the way the metadata is stored in the new package. This is just a functioning demo of props and state that could be used in place of create-block to showcase how to persist data on the backend and front-end. \n\ngit clone the repo\n\ncd into directory\n\nnpm i\n\nIf using wp-env: Startup wp-env\n- Requirements: Docker - running\n- Requirements: Node/NPM - running/installed\n\nTroubleshooting \n\u003e Could not connect to Docker. Is it running?\nMake sure to open the Docker application first, before wp-env\n\nOnce you have your environment going, and this is in your local plugins folder... \n\nnpm run start \n- starts scripts \n- watches changes and builds block\n\nGo to website, insert block\n- Activate plugin\n- Create new post\n- Add Props and State Block\n\nModify input field - value \n- persists, \n- updates in previewer, \n- and is available on front-end\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflexseth%2Fwordpress-props-and-state","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflexseth%2Fwordpress-props-and-state","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflexseth%2Fwordpress-props-and-state/lists"}