Package Exports
- onchain-magic
- onchain-magic/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (onchain-magic) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Getting Started with OnchainMagic 🪄
Getting started
yarn add onchain-magicimport { useCreate1155Contract } from 'onchain-magic';
const MyComponent = () => {
const { createContract } = useCreate1155Contract
const handleClick = () => {
createContract()
}
return(
<button onClick={handleClick}>Deploy on Zora</button>
)
}
export default MyComponent