{"dist":{"shasum":"cc00ec14103cd86a7ea8accb6c4004dbc567cd72","tarball":"https://registry.npmjs.org/jsx2mp-runtime/-/jsx2mp-runtime-0.4.14-2.tgz","fileCount":6,"integrity":"sha512-1+tG+noWjOmqLo9i5MKYuwzP6oWGVzfwu/OMm+RMtH1MgRaOo17dTFk25kyUB+z1MyQ9HP2uZF1MTIX8Phx6Gw==","signatures":[{"sig":"MEQCIBDteSm6CCxxCLJGjrLXuI4CIxZQRtXQ3HftLkWCOcyiAiBEzJhnCCFBmLwOCK5ZmQd37XAmjLbEe/Wg6T7EeqTY5g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":202583,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe/LppCRA9TVsSAnZWagAAIjUP/1XGAmHUUh0fzRavQXZe\nU+r5xSFx+X6Pe9ms6tHmAPbnbn4KLY58cDObVC5AoJWF/T7vkdIiQ7aiToMf\nnuHMBHEZkY+mvkMkMYLYB1jUM26YpR3TVKwt/sWfhKjlOiOa+6tR5plZZwjX\nQ2SAA248DG8/jGpaQLNsGRDetMuWMv3Uhz0nk3OtQEgE2YlYhmr3FvvtWCKS\nOvke7tpjpobcuOIiMM2bKTh41D1PoF8pwoIJVgT3SLZUwO/dffXa/DqdMlvI\nlH+LNdqnQWTv3VsUk9V0cjgWqeTwEsIZe84XGiQGThhwEoYaZrjxyuCNZRG5\nZnNfrYQSaqZ7tOxj7u0osF5mPdsiMEZT4uAraeCIdmN7KqTyizmerDSrtpCI\nYTR3DE52KTMQQIHZtGZiIFNcex7kgdafbAP1sMtn4bCxZWL7/KJcLAeL0IVc\nuEVERfS2N6rfna+gFlaXcUd3hyfRTEX36vsoraj6SBc1rRhKxBIqv3jYU7ad\nZZS2OJuqMW8+lKNtxWsyRfqA98aKx1hGVd7C9jQGHJxKtd6hqYaO/uMVR1JP\noFJI2CvlmsaNsjOXZ9vd8UDLHV156LRmNIz3g+XtcC1Zn2li80FhRN2GyTPp\nquPwi0ruxJlNCNe3iluoLPnZlAzh9Gp5CyMLM59uB+usGbvv5o6XDhQO98LU\nsqTt\r\n=RRkq\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-2_1593621096614_0.7624408757680001","host":"s3://npm-registry-packages"},"_id":"jsx2mp-runtime@0.4.14-2","version":"0.4.14-2"}