{"dist":{"shasum":"6af61156b07f9402c93b3ecf715530ba8c430df6","tarball":"https://registry.npmjs.org/jsx2mp-runtime/-/jsx2mp-runtime-0.4.23-1.tgz","fileCount":7,"integrity":"sha512-nTuZtDNhvXOfMOEpuzlA5nuqKSfUuxMEP9snzo3qiW10q8wQ2l1pkZUCyFb/JiTMeBJz1ixAhvRld/tTPlV7Xw==","signatures":[{"sig":"MEQCIHJXE7bFJ6QqvYHFMsEE+vIDl5yj2bAw9QMvQSTQepioAiBgIHqCiYU89xl95eVMV8Na4UebUGVSRlZXd8y/R13RkA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":210300,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg7CXtCRA9TVsSAnZWagAAElEP/3wm15pbU9iQmU71bTrq\nrWTD280y2V6Em0F+Q/szS2UldLDBJpJGTNhb8PmHLNZy/bOPmKqeBm7d3MEO\nSF9STxw7W7vMuJfigYcxqAQwjA6wIcHb5L+TpAPyB4mKNTz39w3q+uqXkI4T\njdnIkE9JKO8eEPGa2F6VwrfAWdIDzSMbM+UO0ShknbBFFddboOCWA4Gam6k8\nvFUjh7xc5u8CpJSuQkhZFbCO7+iWE4a6UjJ2ZB580zWUy23UfYtrPBDvzWDl\njChHUsYwzSIYiu8y8K/UlapsRIemS2wSWRrIGwOaG/ZtsCAzI6scoSNhLpw0\n3qRLwA49EC4ljIaKJ1L3NdYjJC42A1wIc1W29DmU2PAT7eAQ3krGyVyHr7wt\n1bJJcy4K0BP3U3RARVXV6JWERmcF4oI9n8SNKfWi5a1grJZHALwLc1uU++bV\nbtYQfmdw29wjRyzY72xIByF9onG5XQ5F2nZTGzurAY2HpHdeDglzTab6xA6g\nwxMQS+gKq9Q4ntSqhylYhYHNpYha/Gn+K3G+0LYwbEh4u/ouoN957HorQ91N\nu3Dp4zfOXS6wcDll8dSkKrJEpfBBZy7mnsUKRlrMlm+6MRLgIy56Sw2UYWZa\nVeqcYiK0x3IbWdGCmNySqEbpN4bt2XHWJ/TTFTtO2o03HzsB+ygLB7G8hChv\nYfIW\r\n=4ek/\r\n-----END PGP SIGNATURE-----\r\n"},"name":"jsx2mp-runtime","author":{"name":"Rax Team"},"readme":"# jsx2mp-runtime\n\nProvide runtime support for rax style miniapp.\n\n- createComponent\n   ```js\n   const __class_def__ = class {\n     state = {\n       name: 'Rax'\n     };\n   \n     handleTap() {\n       this.setState({\n         name: 'MiniApp'\n       });\n     }\n   };\n   \n   const config = createComponent(__class_def__, 'class');\n\n  Component(config);\n  ```\n- (state) useState(defaultValue, key)\n  ```js\n  const __fn_def__ = function Header(props) {\n    const [name, setName] = useState('World', 'name');\n    const [count, setCount] = useState(0, 'count');\n  \n    return {\n      handleClick() {\n        setName('Rax');\n        setCount(count + 1);\n      }\n    }\n  };\n  \n  const config = createComponent(__fn_def__, 'function');\n  Component(config);\n  ```\n- (void) useEffect(callback)\n  ```js\n  const __fn_def__ = function Header(props) {\n    const [name, setName] = useState('World', 'name');\n    useEffect(() => {\n      console.log('didMount');\n  \n      return function unmount() {\n        console.log('unmount');\n      };\n    }, []);\n  \n    return {\n      handleClick: () => {\n        setName('Rax');\n      },\n    };\n  };\n  \n  const config = createComponent(__fn_def__, 'function');\n  Component(config);\n  ```\n","scripts":{"build":"cross-env NODE_ENV=production rollup -c rollup.config.js","prepublish":"npm run build"},"_npmUser":{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},"_npmVersion":"7.10.0","description":"Runtime for jsx2mp.","directories":{},"maintainers":[{"name":"zeroling","email":"wssgcg1213@qq.com"},{"name":"likai757","email":"likai757@gmail.com"},{"name":"solojiang","email":"feifeishen1996@gmail.com"},{"name":"chriscindy","email":"yxy0919@foxmail.com"},{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"}],"miniprogram":".","_nodeVersion":"12.5.0","_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"rollup":"^1.13.1","cross-env":"^5.2.0","@babel/core":"^7.4.5","@babel/types":"^7.8.3","universal-env":"^3.0.0","@babel/preset-env":"^7.4.5","rollup-plugin-babel":"^4.3.2","rollup-plugin-cleanup":"^3.1.1","rollup-plugin-replace":"^2.2.0","rollup-plugin-filesize":"^6.1.0","@babel/plugin-proposal-class-properties":"^7.5.5"},"_npmOperationalInternal":{"tmp":"tmp/jsx2mp-runtime_0.4.23-1_1626088940857_0.7978937498978671","host":"s3://npm-registry-packages"},"_id":"jsx2mp-runtime@0.4.23-1","version":"0.4.23-1"}