import logo from './logo.svg';
import {useEffect,useState} from 'react';
import './App.css';
function Equation(p) {
const {data,id,equationParts,setEquationParts,field,operator} = p
function updateEquation(field,operator) {
var eq = [...equationParts]
eq[id].field=field
eq[id].operator=operator
setEquationParts(eq)
}
return <>
{data[field]}
{id}
>
}
function EquationBuilder(p) {
const {data} = p
const [equationParts,setEquationParts] = useState([])
const [equation,setEquation] = useState([])
useEffect(()=>{
var newEq = []
for (var i=0;i