IlyaRucavitcyn / TIL-Today-I-Learned-

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TIL-Today-I-Learned

Here is a new repo I have created to share things I am learning from one to another day.

Github Markdown
Anchored headings
ReactJS
Compound components pattern

Github Markdown

Create Anchored Markdown Link

To create a link to some part of your README.MD file just follow the instructions in the following gist

ReactJS

Compound Component Pattern

An approach when creating reactjs components to achive maximum configurational flexibility : all the inner parts of the components are passed to it as this.props.children. The props and state values sharing is implemented with the React.cloneElement method of the React API (passed as the second argument). There is also a possibility to share the data with creating parent component's context. A great talk on the topic can be found here.

About