Correctly pass params to React component