JavaScript React Basics First Steps in React Embed JavaScript Expressions in JSX

Tobias Therkildsen
Tobias Therkildsen
2,396 Points

Is it possible to run a JS function in jsx?

So in my header I wanted to add an id attribute to the p element. I wanted to calculate how that would end up with a function perhaps even getting a function / variables from other JS files?