{"dist":{"shasum":"6535e10dc2bf7cbba43241b3360598672492d472","tarball":"https://registry.npmjs.org/jsx2mp-runtime/-/jsx2mp-runtime-0.4.12-1.tgz","fileCount":6,"integrity":"sha512-VmHBNFdqF6cwmulY3fQ/37diWSzMT0VwThJBxwtjLT9MLoYTnr+RxcLI59IiSVIq82xecCwBgOm8kbeHA6AXnA==","signatures":[{"sig":"MEYCIQCn7WPyQl/DYgZ8WRUDhvT8bU6XG0thTz1626BgTgwnzAIhANBdE9Em1QW9Wh0e962kmV5BmA4T/w9i2TAOu2Tg1I59","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":199431,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJexNkkCRA9TVsSAnZWagAAjZAQAJe1HJv37grsdO64chfq\nQwfotjavJNksosDGGzH+stK3lqb/Rflz8w3xSUUiwqkY80pZAU5O5DJKh0n+\nDGzWc+qFvRZhP4AZex7OVX1jSAnVq+q+vxqESnpu5QbyIiHeYO7I/Jf7Zc7P\nq7L0o1wCfLZNRCJaqbNtgu4zSZd41G1o6w73m6EiNtd4xfAWlH1UW9F1vAQR\nI9vNAZetM4xcA5nd7DH0lTjd5oPbDBys1N7hRfn8TxsalJIe640sYqfYqD0E\nLQflljPNhEP/RGcfDrY7fP5i4wrvsO+WqOZQ3X9qfFDv99lI6QAzK5c5rkJK\n6CCi4NW2Vdv50fyvXxEH7g/wZKkodzsdiZl/G+OKIIQ/97KMMgcfkd3tzMVF\nJwYhFMdkGJ0VNyRtL5U+hFLTHWip0FFLk9+3YBu5iMUxygXdyUlrwr9XfJyB\nhW3thwlTJ/Wzmj2+HvialldzTsReRuoaSXUCQ+6bp+f4o728dQvcZvaTKuao\nntmkUQURWMZ2wpK+afV0eNfDQ3OlNg09MTOnpoFelaUlWwBrhfVSsFJQyj+o\nJmh/4JVcbDBIREKfIGtN97yICiVhbxE1AwzDTZ6P0ezGgBTP4qfTxIG9ZDZi\nX5jxv18B0fCfy+jysr81A+/gH4Ot8zNl4hwARK+D81AMN30i+iuN7gh5cfVN\nNWrR\r\n=hGxW\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.12-1_1589958948457_0.5184623930656367","host":"s3://npm-registry-packages"},"_id":"jsx2mp-runtime@0.4.12-1","version":"0.4.12-1"}