My issue lies in calling a function with 3 inputs - 2 numbers and 1 string. The two numbers are being passed correctly, but I need the string to be printed within the element.
I suspect the problem is related to passing the parameter to an HTML part of the code, but I am unsure how to solve it.
import Typography from '@material-ui/core/Typography';
export function myfunction(name, min max){
const midpoint = Math.ceil((min + max)/2)
return(
<div>
<Typography id="input-slider">
name //this is where I want name to be
</Typography>
<div/>
)
}
In another file, this function is called as follows:
function main(){
return(
<div>
{myfunction(MYNAME, 0, 10)}
<div/>
)
}