leappay-react-sdk
v1.0.0
Published
## Dependencies
Readme
LeapPay SDK (React & TypeScript)
Dependencies
- Node.js:
v20.14.0
Ensure you have the specified version of Node.js installed to avoid compatibility issues.
Installation
To install the LeapPay SDK, run the following command:
npm install leappay_sdkCommands
Run these commands using npm run <command_name>:
Create Build
build: Creates a production build of the library.
Development
dev: Starts the development mode for the library.serve: Serves the created build on a specified port.start: Concurrently watches for changes, builds the library, and serves the build.
Formatting
lint:fix: Fixes all ESLint errors.prettier: Fixes all Prettier formatting issues.
Example Usage
Here is a basic example of how to use the ConnectLeapPayForm component from the LeapPay SDK in your React application:
import React from 'react';
import { ConnectLeapPayForm } from 'leappay_sdk';
function App() {
return (
<div>
<h1>Welcome to LeapPay</h1>
<ConnectLeapPayForm />
</div>
);
}
export default App;License
This project is licensed under the MIT License.
