Questions tagged [react-static]

react static site generator developed by nozzle

Building progressive applications and websites.

Generates a base application (of your chosen theme) and gives you clear extensions points to append your own code.

https://github.com/nozzle/react-static

38 questions
0
votes
1 answer

How to detect if another component is present in the document?

I have a site built with React Static that has a Header component that is always present. Depending on if the current page has a hero component or not, the Header should be either light or dark. The Header is rendered outside of the routes and the…
0
votes
1 answer

react-static: ReferenceError while building

This error occurs when a project is build. I think it's because I don't have a react-static build, but I don't know the error. package.json "dependencies": { "@reach/router": "^1.2.1", "aos": "^2.3.4", "react": "^16.9.0", …
minimin_bamm
  • 109
  • 10
0
votes
0 answers

Fetch JSON from same Server (localhost) but different Virtual Host

I'm having quite a basic issue I suppose. I've set up CraftCMS to be reachable via Apache Virtual Host http://craftapi and am using Element API with routes such as http://craftapi/projects?page=1 etc. On a separate Virtual Host http://mysite I've…
riccardolardi
  • 1,713
  • 5
  • 20
  • 35
0
votes
1 answer

react-static /edit/:id /nested routes lose references to assets on refresh / hotload

I am a bit new to react-static, so bear with me. In development and when statically generated, refreshing a page when on a route that is used as such " /page/edit/:id" will change root reference of image assets. My routing:
fred
  • 21
  • 3
0
votes
1 answer

How to remove page from the sitemap file generated by react-static?

According to documentation, setting route property noindex to true like the example below it would prevent the page to be included in sitemap: For the sake of…
MiguelSlv
  • 14,067
  • 15
  • 102
  • 169
0
votes
1 answer

Error: "Module parse failed: Unexpected token" when building react-static app template

I got this error when creating a fresh app from react-static blank template, after clean up the windows environment and reinstall nodejs and react-static, following this procedure. ERROR in …
MiguelSlv
  • 14,067
  • 15
  • 102
  • 169
0
votes
1 answer

React route url and view changes but component function still active. Why?

I have an event function that is triggered by a button click. It's purpose is to keep the body position fixed keeping it from scrolling until you click the button again to close/toggle it off. It works fine but, when I click to another page without…
brooksrelyt
  • 3,925
  • 5
  • 31
  • 54
-3
votes
1 answer

Need replace html string text from react component

Issue : - we are facing the shortcode issue. we use shortcode {{email}} for email subscription in content and the server provides content as HTML string on the frontend side. we render string to HTML on the frontend side from dengerouslySetInnerHTML…
1 2
3