pass data to tsx code stored in a variable
I have tsx stored as a template in a variable like so
// file a
let v = text
This should be used with some context or parameters in other files.
// file b
import v from a.tsx
function f() {
return <>{v}>
}
v cannot access context(s) in other files. How can v be able to access context or is getting props assigned?