How to pass numbers to React component?
You should be passing the numbers via curly braces({}) where as strings in quotes
1 | React.render(<User age={30} department={"IT"} />, document.getElementById('container')); |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.