How to generate html when building a react.js application?

  • 0
    There is a project written in React.js. In fact, these are laid out blocks that are broken down into react components. In these components, the logic is partially implemented: switching tabs, switches and all sorts of things. When building a project in production, I get one index.html page, to which files with styles and a lot of scripts are connected. The customer wants to be able to generate html and css during assembly. So that you can select from the html document and then do something with it. Is it possible to generate html and css when building a react project?

    React Elisabeth Hernandez, Dec 8, 2020

  • 2 Answers
  • 0
    Xs on react like, but next.js has a build parameter for generating statics, google in this direction.
    Anonymous

  • 0
    Npm run build, but css it will compress you for sure
    Anonymous

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!