Is there a way to include a global CSS file within a custom ThemeProvider component in React? I am in the process of developing a component library for NPM with the intention of allowing other React applications to utilize the CSS file globally.
I attempted to create one as follows:
import React from 'react';
import './global.css';
interface Types {
children: React.ReactNode
}
export default (props:Types) => <div>{props.children}</div>