{"dist":{"shasum":"e840fd83f325443ac4f8911c94f7c1afa1856979","tarball":"https://registry.npmjs.org/jsx2mp-runtime/-/jsx2mp-runtime-0.4.13-6.tgz","fileCount":6,"integrity":"sha512-n6yTIeenThZZ8P2yGOlo0danL3RxOgX/Uo3i7XVObMruZkUylK0b8IQ7kvLegn9l7TqNYQN9FFWxS4hBIKQZcQ==","signatures":[{"sig":"MEYCIQCRy+Ar1/Sp0ztWWWPNb5aY+tjt0LBIih1rH9PwDbPUeAIhAJjEzaGy7cKYiiBVkeo+y9odw9g/fkQhax69QYWmyD9b","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":200398,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe17zyCRA9TVsSAnZWagAA26kP/A59uExNzoymWCaJjl4E\nI1Wjre3pk4isOA+OgXh7b4PbsOt0ajWbTS7h/omAm3yC+iT0CThaYObweZwm\n7T4YQn8SDAICdzAh0QU4qG/keTKKrKNymrWMnLCZby5wWU58c+xx1AjBqZXr\nGIiCO/cYz3Q9SdxCQAc6JNRPe5Q4nUhmRsfMVit9fGUqy5dT6FDRTW6qF53e\n3eE++cVsYqz4bK6vExp84lCtS0tfGGvq4o4OY0mDMOft0I4VGa7X77TYcLOJ\nY/emQdOZghTUI/iz9NpneZKTiZt8fIN5iSjceThsQ7al+B93f5XxbFqzx4YF\nIH/5naFeC48uPlPjcVf3ksJdz+wYWzeulKF9EcqYNsmTLw79lO9mMceFaz0Q\njvJdNWJ0wxeSw+HP3pxkNGcOYpuZOmGNJ1WciKUosL/XN6YuOTD9J1gVAzol\n4EZ3NtuA5vUiM/g+DtTfNBFYZgsyVWjJhJB4ZD/0Dt7+PcvbNd2TbAcYmkPb\nw9KloXJOHDNELItDUmVFEM4Xou/Jr3/KJIT+85hrLSmfof6F7isVg0bahHvu\n8tU29o0KfNn8+132jPp6G/QsidFKZac1kvg3dost56xQXkIBJQP4RW1heIZU\nemebvMwRDv7eoOSC+zSg9D49fVPtrPBkfVLZugZob7ssf7904u++FZsWZiqO\nlUuN\r\n=zKCV\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-6_1591196914093_0.4596375982062977","host":"s3://npm-registry-packages"},"_id":"jsx2mp-runtime@0.4.13-6","version":"0.4.13-6"}