The dynamo effect in fusion plasmas