Create React App 4.0 is currently in alpha and supports using React 17 and the new JSX transform. To use it, follow these instructions.
Create a new app with npx create-react-app@next --scripts-version=@next --template=cra-template@next my-js-app
Create React App 4.0 is currently in alpha and supports using React 17 and the new JSX transform. To use it, follow these instructions.
Create a new app with npx create-react-app@next --scripts-version=@next --template=cra-template@next my-js-app
const graphiqlBrandingTweak = { | |
["postgraphile:graphiql:html"](html: string) { | |
console.log("Applying GraphiQL Branding Tweak..."); | |
return html.replace( | |
"</head>", | |
`<style type="text/css"> | |
@media (prefers-color-scheme: dark) { | |
html { | |
filter: invert(1) hue-rotate(180deg); | |
} |