How to change the Font Size in a whole react application?

I have created a react web application with the dropdown consist of font size.

My need is, if i select the Font Size “26” from the dropdown, then it should be applied to my whole project.Is there a way could it be done?

Answer

Personnally i would make a global style file with a styleSheet that i import on every component to use it. With this file you can use a variable from your storage (ex: font style) and apply it to all font-size directives.
Good luck !