We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
```react|plain,light,span-3 state: { date: new Date(), } --- <div>{state.date}</div>
^^ shows up as "new Date()", like it's turned into a string instead of generating a date.
Saving new Date() to an external variable and passing that variable through to state turns the name of the variable to a string also.
new Date()
Any ideas how to have an example using todays date in a real date format?
The text was updated successfully, but these errors were encountered:
Have you tried using a query string at all?
state: { date: `${new Date()}`, }
Sorry, something went wrong.
I haven't. Does that work?
No branches or pull requests
^^ shows up as "new Date()", like it's turned into a string instead of generating a date.
Saving
new Date()
to an external variable and passing that variable through to state turns the name of the variable to a string also.Any ideas how to have an example using todays date in a real date format?
The text was updated successfully, but these errors were encountered: