
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@ourpay/donation
Advanced tools
JS/React library for MFE Demo widgets
cd mfe-demo-widget
npm install
npm run dev
cd example/react OR cd example/js
npm i
npm run dev
Install as an NPM package (npm i @ourpay/donation
) or import from CDN: https://www.unpkg.com/@ourpay/donation
NOTE: If you want to inject the bundle straight into the browser via script tags, make sure to import the browser bundle: https://www.unpkg.com/@ourpay/donation/dist/browser.js as it has all the React dependencies included
import {
DonationForm,
DonationTable,
DonationProvider,
} from "@ourpay/donation";
export default function App() {
return (
<DonationProvider
appId={123}
backgroundColor="#758BFD"
primaryTextColor="#F1F2F6"
>
<DonationForm defaultAmount={5} />
<DonationTable title="Donation Table" />
</DonationProvider>
);
}
Example:
// Initialize JS factory
const elements = OurpayDonation.Elements({
appId: 123,
backgroundColor: "#fff",
primaryTextColor: "#000",
}); // uses OurpayDonation global variable
elements.DonationForm.mount("#form-id", {
defaultAmount: 100,
});
elements.DonationTable.mount("#table-id", {
title: "Donation Table",
});
FAQs
JS/React library for MFE Demo widgets
The npm package @ourpay/donation receives a total of 7 weekly downloads. As such, @ourpay/donation popularity was classified as not popular.
We found that @ourpay/donation demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.