Learn React with TypeScript 3 by Carl Rippon

Learn React with TypeScript 3 by Carl Rippon

Author:Carl Rippon [Carl Rippon]
Language: eng
Format: epub, mobi
Tags: COM060130 - COMPUTERS / Web / Design, COM051260 - COMPUTERS / Programming Languages / JavaScript, COM051440 - COMPUTERS / Software Development and Engineering / Tools
Publisher: Packt
Published: 2018-11-29T05:48:19+00:00


public render() {

return (

<ul className="tabs">{this.props.children}</ul>

);

}

We again use the magical children property to render the child nodes within Tabs.

We are progressing well with our compound Tabs and Tab components but our project no longer compiles because we have the tab click handler, handleTabClick, that is not referenced anymore. We need to somehow reference it from the Tab component when a tab heading is clicked, but remember Tab doesn't have access to members of Tabs. So, how can we do this? We'll find the answer to this problem in the next section.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.