Hi community ,
this is my first project with React and GSAP. I really love the work we have created, but we have a big issue:
In the project, we are using server side render with reactjs.NET. When we try to render a component with the gsap library we got this error:
setTimeout is not supported in server-rendered Javascript
Here is an image with the error too.
please, help me with some ideas, I made great things with gsap and I dont want to do
Make sure you have everything setup correctly... client side code separate from server side code.
https://reactjs.net/bundling/webpack.html
Or use gsap in a script tag, like from cdnjs.
@model IEnumerable<ReactDemo.Models.CommentModel>
@{
Layout = null;
}
<html>
<head>
<title>Hello React</title>
</head>
<body>
@Html.React("CommentBox", new
{
initialData = Model,
url = Url.Action("Comments"),