From c3d1abdbdbaa6769c75794394473a0fc508e4786 Mon Sep 17 00:00:00 2001 From: Even Stensberg Date: Mon, 4 Apr 2016 07:08:15 +0200 Subject: [PATCH] Added information about spread attributes Added some information about spread attributes in the docs --- lessons/05-active-links/README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lessons/05-active-links/README.md b/lessons/05-active-links/README.md index afed6d77..44343a77 100644 --- a/lessons/05-active-links/README.md +++ b/lessons/05-active-links/README.md @@ -51,6 +51,10 @@ primary navigation links need to know. It's useful to wrap those so you don't have to remember what your `activeClassName` or `activeStyle` is everywhere. +We will use an spread attribute here, the three dots. It clones our props +and in this use case it clones `activeClassName` to our desired component for +us to benefit from. + Create a new file at `modules/NavLink.js` that looks like this: ```js