Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Change README component from class to functional component #30

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jrmarqueshd
Copy link

This Pull Request only change in README.md ReactJs Example from Class Component to Functional Component.

)
}

export async function getStaticProps() {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This part should be reverted. It's mandatory to set the Cache-Control header for the cache server to store this fragment in cache.

However we should use getServerSideProps() instead of getServerInitialProps(), which is now recommended.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants