I'm quite new to React and a little stuck. Could someone please explain me how to achieve the following?
I have a child class, something like
import React from 'react';
import PropTypes from 'prop-types';
class testClass extends React.Component {
render() {
const {fields} = this.props;
return (
<Text>
blafasel
</Text>
)
}
}
and a parent class like this:
import React from 'react';
import PropTypes from 'prop-types';
import testClass from './TestClass';
class testParentClass extends React.Component {
render() {
const {fields} = this.props;
return (
---> display testClass here
);
}
hope you get the idea. Is this possible? I think so. But how?