arabold / serverless-react-boilerplate

React web application running on AWS Lambda using the Serverless Framework
MIT License
243 stars 88 forks source link

Not loading the CSS App #56

Open Emman-Dizon opened 2 months ago

Emman-Dizon commented 2 months ago

App.tsx:

import "./App.css";

import * as React from "react";

import useConfig from "./components/useConfig";
import logo from "./logo.svg";

/**
 * Our Web Application
 */
export default function App() {
  const config = useConfig();
  return (
    <>
      <p className="red-text">test</p>
      <div className="App">
        <header className="App-header">
          <img src={logo} className="App-logo" alt="logo" />
          <h1 className="App-title">Welcome to {config.app.TITLE}</h1>
        </header>
        <p className="App-intro">
          To get started, edit <code>src/App.tsx</code> and save to reload.
        </p>
      </div>
    </>
  );
}

App.css:

 .red-text {
  color: red;
}

but after deployment and accessed the AWS link, the text did not change color

Emman-Dizon commented 2 months ago

can someone help me?

Emman-Dizon commented 2 months ago

probably this boilerplate is not working anymore