![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
@mercadopago/sdk-react
Advanced tools
Mercado Pago's Official React SDK.
This is a wrapper that allows integrate Checkout Bricks easily inside React projects.
Before starts verify if you have installed Node version 14.18.0
or superior.
First, install SDK MercadoPago React:
npm install @mercadopago/sdk-react
Start the instance of MercadoPago:
import initMercadoPago from '@mercadopago/sdk-react/mercadoPago/initMercadoPago';
initMercadoPago('YOUR_PUBLIC_KEY');
Each brick needs a component, such as:
Use CardPayment component inside your functional React:
import Card from '@mercadopago/sdk-react/bricks/cardPayment';
const App = () => {
return (
<Card
initialization={{ amount: AMOUNT }}
onSubmit={async (param) => {
console.log(param);
}}
/>
);
};
export default App;
Use Payment component inside your functional React:
import Payment from '@mercadopago/sdk-react/bricks/payment';
const App = () => {
return (
<Payment
initialization={{
amount: AMOUNT,
preferenceId: 'YOUR_PREFERENCE_ID',
}}
customization={customization}
onSubmit={async (param) => {
console.log(param);
}}
/>
);
};
export default App;
Use StatusScreen component inside your functional React:
import StatusScreen from '@mercadopago/sdk-react/bricks/statusScreen';
const App = () => {
return <StatusScreen initialization={{paymentId: 'YOUR_PAYMENT_ID'}}
};
export default App;
Use Wallet component inside your functional React:
import Wallet from '@mercadopago/sdk-react/bricks/wallet';
const App = () => {
return (
<Wallet
initialization={{ preferenceId: 'YOUR_PREFERENCE_ID' }}
customization={customization}
/>
);};
export default App;
To use Mercado Pago React SDK, follow the steps:
Install project:
npm i
Execute project build:
npm build
Execute npm run start
to initialize storybook.
This project is under Apache license, version 2.0. See Apache 2.0 file for more details.
FAQs
Mercado Pago SDK React
The npm package @mercadopago/sdk-react receives a total of 6,417 weekly downloads. As such, @mercadopago/sdk-react popularity was classified as popular.
We found that @mercadopago/sdk-react demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.