I have a problem in React with props. I need to throw into my Component (into lable tag) string with a link. I’v done that and it works, but i have the error in browser console like “console.js:288 Warning: The tag is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.”
It works, but i have the error in browser console “console.js:288 Warning: The tag is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.”
const termsOfUseLableText = (
<>
I agree with{" "}
<Link to="/" target="_blank">
Terms of Use
</Link>
</>
);
<CheckBox id="termsOfUse" title={termsOfUseLableText} />
In this way i have no error in browser console, but my componen looks like “I agree with [object Object]”
const termsOfUseLableText = (`
I agree with{" "}
${<Link to="/" target="_blank">
Terms of Use
</Link>}
`);
<CheckBox id="termsOfUse" title={termsOfUseLableText} />
I have no idea how to solve that…
Nick is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.