score:4

Accepted answer
export class Child1 extends Component {
    render() {
        return (
            <div>
                <div>
                    {
                        this.props.name !== '' &&
                        <h3>{this.props.name}</h3>
                    }
                </div>
            </div>
        )
    }
}

export default Child1;

Related Query

More Query from same tag