I think I need to use the tag parameter to allocate props to the Jumbotron but I don't understand the syntax given on the reactstrap components page.
Jumbotron.propTypes = {
// Pass in a Component to override default element
tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),
fluid: PropTypes.bool,
className: PropTypes.string
};
My working code is
return (
<div>
<Container>
<Jumbotron >
<h1 className="display-3">{this.props.title}</h1>
and I am trying to pass back a prop to the Jumbotron to change it's height, and to change the background image dynamically from the calling component. Does anyone out there have a link that would help me get to the bottom of this? Failing that a code snippet would be much appreciated.
Thanks in advance.