-1
Good afternoon!
I’m trying to create a component that contains Ivs that stylize the components inside. Only there are 3 Ivs and I don’t want to replicate them every time I go to use, so I thought of creating a component that stores them and summarize me in only one line all 3.
export default class Container extends React.Component {
render() {
return (
<div className="container-fluid">
<div className="row">
<div className = "col-12 mt-3">
/* INSERIR O CONTEUDO AQUI */
</div>
</div>
</div>
);
}
}
Where you are inserting content is where the components of what I inserted before should be, such as the Title component.
export default class Index extends React.Component {
render() {
return (
<div>
<MainStyle pageTitle = {"Resumo do Monitoramento"}/>
<Navbar />
<Container>
<Title primary="Index" secondary="Página Index" />
</Container>
</div>
);
}
}
You can do this in Act?
I don’t understand your question
– novic