Build a JavaScript Calculator doubt

I have finished the calculator project using React.
i used built in javascript method eval() for calculating the expression values entered in the calculator after modifying them according to project requirements.
My question is,is there a better way of doing it?I read online that eval is not safe and is pretty resource consuming.
Ofcourse i can parse the input and write the logic myself but are there any javascript alternatives?.

I found a bug in your calculator. If I enter 0.1 + .2 = nothing happens. It should display 0.3

Also, you really should add a button to clear one character at a time (like a backspace). If a user makes a typo at the very end, they have to use the C button to clear the entire display instead of just clear one to characters.

hey,
thanks for the feedback.
I am not calculating for expressions with no digits before the decimal point.I have fixed that.
More importantly I was asking about alternative ways than using java eval.