A React-based formula input calculator that allows users to create and evaluate mathematical expressions with dynamic variables.
- Dynamic formula input with autocomplete suggestions
- Tag-based variable system with dropdown selection
- Real-time calculation
- Support for basic mathematical operations (+, -, *, /, ^)
- Currency formatting for results
- Responsive design with TailwindCSS
- Node.js (v14 or higher)
- npm or yarn
- Clone the repository:
git clone https://github.com/Recillah-Khamala//Causal-test.git
cd Causal-test
- Install dependencies:
npm install
# or
yarn install
- Start the development server:
npm run dev
# or
yarn dev
- Open http://localhost:5173 in your browser.
- Start typing in the formula input field
- Select variables from the autocomplete suggestions
- Use operators (+, -, *, /, ^) between variables
- Add numbers directly in the formula
- Select values for each variable using the dropdowns
- View the calculated result in real-time
run https://causal-test.vercel.app/ in your browser.
- React
- TypeScript
- Vite
- TailwindCSS
- Zustand (State Management)
- React Query (Data Fetching)
This project is licensed under the MIT License - see the LICENSE file for details.