File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -192,6 +192,9 @@ A basic example showing the can be viewed at [codesandbox.io](https://codesandbo
192192
193193[](https://codesandbox.io/s/mj5py581oy)
194194
195+ > This option allows to pass down props without to need to create a function
196+ > within render which merges the parent and received props.
197+
195198` ` ` js
196199class CountSeconds extends React .Component {
197200 state = {
@@ -216,9 +219,9 @@ class CountSeconds extends React.Component {
216219
217220const DisplayValue = ({prefix = ' ' , value}) => ` ${ prefix}${ value} `
218221
219- const App = () => (
222+ const App = ({prefix} ) => (
220223 < CountSeconds>
221- < DisplayValue prefix= " Seconds: " / >
224+ < DisplayValue prefix= {prefix} / >
222225 < / CountSeconds>
223226)
224227` ` `
You can’t perform that action at this time.
0 commit comments