in ReactJS by
How to pass numbers to React component?

1 Answer

0 votes
by

You should be passing the numbers via curly braces({}) where as strings in quotes

React.render(
  <User age={30} department={"IT"} />,
  document.getElementById("container")
);
...