Although an experienced programmer I am completely new to js and react.
I am trying to use the react-native-svg component Path within a component of my own. All is clear with the example, but it uses a string literal for the coordinates. E.g.:
<Path d="M 10 20 L 30 40" stroke="red" />
However I want to use coordinates from my component's props x1, y2, x2, y2 instead of literals but I can't figure out how to plant them into the quoted string along with the various characters of which M and L are examples.