Most guides to testing React these days preach: 'Test functionality, not implementation details'. This article explains what that means, and how to do it.