ReactJS | Quiz Set - 4 | Question 4

Last Updated :
Discuss
Comments

Which is the right way of accessing a function fetch() from an h1 element in JSX?

<h1>{fetch()}</h1>

<h1>${fetch()}</h1>

<h1>{fetch}</h1>

<h1>${fetch}</h1>

Share your thoughts in the comments