template-estado-global link do codesandbox https://codesandbox.io/s/ecstatic-einstein-92efo0?file=/src/App.js