import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(<App
paramA={100}
paramB={500}
/>, document.getElementById('root'));
import React from 'react';
import SumResult from './components/SumResult.js';
function App(paramA, paramB) {
return <SumResult {...paramA}{...paramB}/>;
}
export default App;
import React from "react";
function SumResult({paramA,paramB}) {
return paramA+paramB;
}
export default SumResult;```