react-martingale-tables
v1.1.7
Published
A simple React component to render roulette martingale tables
Maintainers
Readme
React Martingale Tables

A simple, lightweight, TypeScript React component for Roulette Martingale Tables for various strategies.

Install
Very simple! Just run npm i react-martingale-tables
Props
Only required param is stratName
| prop | default | type | description | | -------------- | ------- | ------- | --------------------------------------------- | | stratName | none | string | Strategy name / title | | multiplier | 1 | number | Unit multiplier (aka: how many bets per unit) | | win | 1 | number | Profit units on win | | additionalUnit | 0 | number | Additional units to add to loss multiplier | | showProfit | true | boolean | Show / hide profit calculation |
Basic example
If you only mount with the required param the component will render the outside bets martingale strat
import MartingaleTable from 'react-martingale-tables';
// Import the styles (unless you want to roll your own)
import 'react-martingale-tables/martingale.css';
// Then mount the component in your JSX
<MartingaleTable stratName="Outside 1:1 bets" />;
Other strategy examples
9 streets
import MartingaleTable from 'react-martingale-tables';
import 'react-martingale-tables/martingale.css';
// Then mount the component in your JSX
<MartingaleTable stratName="9 Streets" multiplier={9} win={3} />;Double Streets
import MartingaleTable from 'react-martingale-tables';
import 'react-martingale-tables/martingale.css';
// Then mount the component in your JSX
<MartingaleTable
stratName="5 Double Streets"
multiplier={5}
win={1}
/>;Outside bets (Double + 1 unit on loss)
import MartingaleTable from 'react-martingale-tables';
import 'react-martingale-tables/martingale.css';
// Then mount the component in your JSX
<MartingaleTable
stratName="Outside bets (Double + 1 unit on loss)"
multiplier={1}
win={1}
additionalUnit={1}
/>;Examples:
You can run this package locally by cloning this repo and running the following:
npm install
npm startThis will launch the a vite app from src/main.tsx and should mount several MartingaleTable components with different strategies
