{"dist":{"shasum":"fdaa893d054b06d1124dd73be4b169d9f0ac51fb","tarball":"https://registry.npmjs.org/jsx2mp-runtime/-/jsx2mp-runtime-0.2.3-beta.1.tgz","fileCount":6,"integrity":"sha512-g4dVp78ep5uoCdt2qcPsC+Qhcuqhw7kpDuWn1gIc1nIyEK2cf/+W4ophNX3ukA2IlchvSOIaZjHL4NJEVwd1rQ==","signatures":[{"sig":"MEYCIQDjrZYcnww70CRM5wOyZwsuBir9XZZJz2S/4DK05l1qoAIhALP8uWYw/V1SrOFWIUcfx1k+G3hXnU74tIGFYNeEs28R","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":115566,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdb2KCCRA9TVsSAnZWagAAufAQAIZ9lleSNiUEEqX/VSbC\n/kgtxY9j0mSz4zrXX/Rz51vySCKmv2yXFEsDWJRllSnkWDq1fvxGnnLYK4au\n3Yl0Vh+/UkhYMNUrY9v3zTDgh8u/fiAXCnkHSXddyR2RjjITVOMFQ3LLIpWk\nmqhDeDaVXQ39DzMB/3KcGDaY7w3o4vB4QQ6f02Yh2ys/8YjEOi2f4A8nOcVq\nFABE4yZFeXUFy8y/htwHhv8EcGujSyUErwbQKf7HSQBPV8jf18urRI8pzCF+\nHIKZivrs7xhdXJmPNEImZ+B7Rroo91Cg95VuWgDrE0EBUbX5JbWR+CEyZ0vH\nFDoy0m2Qu55AWzSqCdNQfOjd41BXDhl+HmFj2jqK98hLaOirJzzohwsHrgpO\nuVNHSNxX+SmNKAYqJgpz77vDqsO62l1ydpD83qc16OwEbBlGOGeIlE4FiWNr\n6MBYz2cikyOfUrWsB3CHZzt2+FNCqUExxXVRwm5tO/u7YiW93IL9kvzOu7bP\nUT1B/iRMixGWgzLJkCulK+SFg/DHaC8773P/RAhgE3Rbb3B7DP9BC4wz4LfJ\n3fk63avIcwhL97wtskRgR6bpbyWHLrxe0CY8MiF+fM0D24+gqpARRFv9IUse\nPI3RQGiN2HBpOO45W4Ma0w4sY29kHV4e6Usy/kzboiHV4QXFJbrgM9X1D9pv\n6uM2\r\n=ER5o\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":"solojiang","email":"feifeishen1996@gmail.com"},"_npmVersion":"6.10.3","description":"Runtime for jsx2mp.","directories":{},"maintainers":[{"name":"chriscindy","email":"yxy0919@foxmail.com"},{"name":"likai757","email":"likai757@gmail.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"},"_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/preset-env":"^7.4.5","rollup-plugin-babel":"^4.3.2","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.2.3-beta.1_1567580802014_0.6031367917903185","host":"s3://npm-registry-packages"},"_id":"jsx2mp-runtime@0.2.3-beta.1","version":"0.2.3-beta.1"}