Answer the question
In order to leave comments, you need to log in
How to render a finished class?
there is a class:
class ExtraClassName extends React.Component {
render() {
return <div />;
}
}
var ecn = new ExtraClassName ({});
render() {
return (
<div>{ecn}</div>
);
}
Answer the question
In order to leave comments, you need to log in
In react, rendering a component is done like this:
render() {
return (
<div>
<ExtraClassName key={somedata} />
</div>
);
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question