Basic Cardano dapp connector.
- Supports connections to Nami, CCVault, and Flint wallets.
- Implemented as React compontents written in TypeScript.
- Includes basic example for constructing and executing transactions. See
executeBuyExample.tsx
.
Do you have an example using the purchase logic (transaction builder) where you could call those components on a separate file? In other words, I would like to use the txbuild logic but not have it written in the same page as the content I render. The reason being because I export pages as const's and use a function to define the returned content and then in index.tsx I render the individual pages and I would like to keep this clean structure. So I would like to use the txbuild logic within the Faq const/html page
*****Faq.tsx file that I would like to include a div for the txbuild logic
const Faq = () -> (
-section className="faq-section
-div className="faq-header container-fluid text-center">
-img
className="img-fluid"
src="images/faqHeader.svg"
alt="FAQ Section Header Image"
>
-div
export default Faq;
**app.tsx file
function App() {
return (
<Routes>
<Route path="/faq" element={<Faq />} />
<Route path="/roadmap" element={<Roadmap />} />
<Route path="/" element={<Home />} />
</Routes>
<div className="MyFooter">
<Footer />
</div>
</Router>
);
}
export default App;
**Index.tsx file
ReactDOM.render(
<React.StrictMode>
-App-
</React.StrictMode>,
document.getElementById('root')
);
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.