{"dist":{"shasum":"0dc695cf43e9572a4bc42de28e44d955db2573ad","tarball":"https://registry.npmjs.org/jsx2mp-runtime/-/jsx2mp-runtime-0.4.14-3.tgz","fileCount":6,"integrity":"sha512-Yuv6HvxmcGBXB19GfUzUfxKUreRDpSCr2LSONJvO8/MAAy8KGocjp/tOOHOGVoROILU0A50W9t4LWEcoZ5NbYg==","signatures":[{"sig":"MEQCIDcuYxo2PmkvyXn6tm9NXvej1se0TLARR4+cxxQlHUImAiBtTWYW/E5O0C0b7bjlvaiWa1/5V6G7bIgwUbAeildhuQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":202851,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe/YSTCRA9TVsSAnZWagAAq+EP/00O/LzE8p7ZR3tkqPLg\nd/ZybQDhbkxGcyUJ97xJKBuAZb1y/tZ496FEVHESnrM3Qm6PL/X97nm9l7En\n0gPTF47g/iJcH4vxtNUqxISfWdzWUlOuE9PwAlkH6eQFXwljwsENMJGUYC87\n1VZoDV1LSKy55CmLta3meezwL5OdCwX0S2bE40I47lwc58BklrMohrUljNtp\n4WoybIlM1fA5cD5hMU434v95ilYIx+MeCG6IP/H5XbsJCnlVNjU04vAD1Lh0\nyOKsu9qLYQ1LAAVpgSC4ae17bG9BVPsWQNn2hTjOVVAqk+wRiNJAh4PI44H8\n6NXSYEXdYt70QxiYx0UE98rBrratsyVzqCJzwnzvIzfgagqZ+olQqirjavqi\nqMstJfQD1uf/ueE55khLs5DCgpfb4VyHUY49P91PWrofdK4etXYDDG6BxoSb\n+NYwPrglbmRmU1/Fut7/nEhZ84ZB3x3luWvmRhw6+3I8NSt0nFmlGCl/ZSjN\nDi/GZmo254pIQq1bthkR+/J2ZHQw4DX0H8NOfDPxqL0+wHvAGeEZxjzAmT38\nVUfmZKblp3zzF0XW0Oeoj0GCP0QP51G7PvDSuiRp0gP0UxSrnoA0m1g0h6Bf\nlVfY1R/oznqMUeVx0PPU4iARCzN/ASnO4JnLkjDVbcxIzdG7wYF6WZgL/MPy\nsfn2\r\n=JQtp\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":"6.14.4","description":"Runtime for jsx2mp.","directories":{},"maintainers":[{"name":"chriscindy","email":"yxy0919@foxmail.com"},{"name":"likai757","email":"likai757@gmail.com"},{"name":"rax-publisher","email":"rax-public@alibaba-inc.com"},{"name":"solojiang","email":"feifeishen1996@gmail.com"},{"name":"zeroling","email":"wssgcg1213@qq.com"}],"miniprogram":{"ali":"dist/jsx2mp-runtime.ali.esm.js","wechat":"dist/jsx2mp-runtime.wechat.esm.js","quickapp":"dist/jsx2mp-runtime.quickapp.esm.js","bytedance":"dist/jsx2mp-runtime.bytedance.esm.js"},"_nodeVersion":"10.16.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.14-3_1593672851060_0.29345574290929544","host":"s3://npm-registry-packages"},"_id":"jsx2mp-runtime@0.4.14-3","version":"0.4.14-3"}