Allow render props as custom status, instead of only string
See original GitHub issueUse Case:
want
<div className='imageCount>
<i className='icon-camera' />
<p>{`${current} / ${total}`}</p>
</div>
as the status of the carousel, but with current behaviour this isn’t possible, except by using css to absolute position said icon inline with where the library currently places the status indicator string.
Issue Analytics
- State:
- Created 3 years ago
- Comments:7
Top Results From Across the Web
How To Customize React Components with Props
In this tutorial, you'll create custom components by passing props to your component. Props are arguments that you provide to a JSX element....
Read more >How to validate React props using PropTypes - LogRocket Blog
Learn how to validate props with React PropTypes, React's internal mechanism for adding type checking to component props.
Read more >Typechecking With PropTypes - React
To run typechecking on the props for a component, you can assign the special propTypes property: import PropTypes from 'prop-types'; class Greeting extends ......
Read more >only allow children of a specific type in a react component
Utilize the built-in PropTypes.arrayOf() instead of looping over children; Check the child type via propValue[key].type !== Card in a custom ...
Read more >Using custom hooks in place of "render props"
A component with a render prop takes a function that returns a React element and calls it instead of implementing its own render...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I also need that statusFormatter allow React Node not only string.
not stale