{"dist":{"shasum":"5394abd36e5e85a1921dbdbbb03ea2808b7eef82","tarball":"https://registry.npmjs.org/jsx2mp-runtime/-/jsx2mp-runtime-0.4.13-3.tgz","fileCount":6,"integrity":"sha512-b0fxdXj//5GbHdbvD4V7gWC1fqt83F0gcwJWuxbU1Ukiok9wajufkKDQnLgE1nLtyaGnWz9A61pNQIPwbNAbog==","signatures":[{"sig":"MEYCIQCMiDpLd/IAjEo0VbYlOa+7uq99F8VnDB2vdS8CkUf6JQIhAIgmznodjlU8QK34JQKQEoAL2DYplTsC1gNtc99KVl7Q","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":199710,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJezyjVCRA9TVsSAnZWagAAR2gQAKFNNJVJa/cmatpbHpmL\nYQBDJnHmRugHR3DXvppfuw3rQr37SjMqiEsmEWwcKPjvNtV37exKGrYNq0Dp\ntwC7Prfv+UI6cO6vsU85LDaHq4fALax1Z1q3I6PCo/1SNcloSq7R7AbAZx8K\nNZeVefiC4OyJxQUHZoJbzXZgBLEDf1+ObH8X0Yiw1Xr+T3f3KvdEVjuXLOPo\nxZzFCLEpoEyJywf0xnn3rhdX5gFSR1/b+qoYgIEy1fKoXB+wO/ArekD24xlB\nc32SlEfOuToJAbbJC3ary7vSnn5wT40hkFnjXai3GH0ECuVlbI9tqbC67ixi\nlpaxOo/3VgS3kTPBlE/lCyYL6+ZkuQk2whIVgsFz4tLw9cYOuK9qIjQJDtuH\nZdHxI1E9y5wfU4VPNcJqkOuKrGO6IERLFZ1eOKnFrj9mtindldddkuE8fO7a\ntOdEg13yf/Up1ICoB50cHhIxWTFSqAHZO+W7nc0G5Y/JhYN3c0zlm1y1d7dT\nMMVH2WEre8B+4lQ4nBhTerTPJeP7rQ+P5InMalOARO7oTSgty9oMuwwi1miP\nFIVqd6i9pALpTwsdnMI5Pd4VoSnP53mRaDUNw4EtHhT2jIE3AqfSTmZ92QLG\nO7v+jvBpWnf4rH7Q4kejqylwuy9uLc9uGXSJbkG49/ccp70/yriEtEvtmq2a\noWsH\r\n=xf+T\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.13-3_1590634709218_0.9867160536686452","host":"s3://npm-registry-packages"},"_id":"jsx2mp-runtime@0.4.13-3","version":"0.4.13-3"}