Javascript – How to render inside elements of a custom component with react typescript
I have a question regarding the element which is inside custom parent component, how to catch it and render it. For example: Parent interface ComponentProps{ message: string; } export default MyComponent: FunctionComponent = <ComponentProps>(props: ComponentProps) => { render ( <div>{props.message}</div>…