@mercadopago/sdk-react
Advanced tools
Comparing version 0.0.22 to 0.0.23
{ | ||
"name": "@mercadopago/sdk-react", | ||
"version": "0.0.22", | ||
"version": "0.0.23", | ||
"description": "Mercado Pago SDK React", | ||
@@ -5,0 +5,0 @@ "main": "cjs/index.js", |
@@ -50,3 +50,3 @@ # React SDK MercadoPago | ||
Before starts verify if you have installed Node version `14.18.0` or superior. | ||
Before starts verify if you have installed Node version `v16.20.2` or superior. | ||
@@ -319,3 +319,3 @@ <br/> | ||
```javascript | ||
import { createCardToken } from '@mercadopago/sdk-react/coreMethods'; | ||
import { createCardToken } from '@mercadopago/sdk-react/esm/coreMethods'; | ||
const cardToken = await createCardToken({ | ||
@@ -332,2 +332,4 @@ cardNumber: '<CREDIT_CARD_NUMBER>', | ||
> When importing directly from `/coreMethods`, you have to explicitly choose between the `/esm` or `/cjs` export formats. For example, use `import { createCardToken } from '@mercadopago/sdk-react/esm/coreMethods';` for ECMAScript modules, or `const { createCardToken } = require('@mercadopago/sdk-react/cjs/coreMethods');` for CommonJS modules. For root imports, this selection is not necessary. | ||
## Run SDK project | ||
@@ -334,0 +336,0 @@ |
218295
361