Again, related to [12964](https://github.com/zeit/next.js/issues/12964)
After checking all the other examples and the ongoing pull requests, I believe that with this PR being merged, all the examples should be free of redundant react imports.
Let me know if you want me to edit anything that you don't like.
Regards
with-typescript
with-atstroturf
with-atlaskit
with-styletron
with-styled-components-rtl
with-stylesheet
with-stomp
with-stitches-styled
with-stitches
with-slate
with-sentry-simple
with-sentry
with-segment-analytics
with-rematch
with-relay-modern
with-reflux
with-redux-wrapper
with-react-relay-network
with-react-native
with-react-multi-carousel
with-react-jss
with-react-helmet
with-react-ga
with-quill-js
with-prefetching
with-google-analytics-amp
with-google-analytics
with-framer-motion
with-flow
with-firebase-hosting
with-firebase-cloud-messaging
with-firebase-authentication
with-expo
with-dynamic-app-layout
with-draft-js
with-cxs
with-cerebral
with-ant-design-mobile
with-algolia-react-instantsearch
using-preact
progressive-render
The issue is related to [12964](https://github.com/zeit/next.js/issues/12964)
Let me know if there are any changes you want me to make.
Affected examples:
**with-glamor
with-graphql-hooks
with-graphql-react
with-grommet
with-http2
with-jest
with-cookie-auth-fauna
with-context-api
with-cerebral
with-aphrodite
with-apollo-and-redux
basic-css
with-carbon-components
amp-first**
I would love to help more, so let me know if there is anything specific I can contribute to.
This issue is related to [12694](https://github.com/zeit/next.js/issues/12964). I covered the following examples
- with-zeit-fetch
- with-yarn-workspaces
- with-why-did-your-render
- with-video-js
- with-universal-configuration-runtime
- with-typestyle
- with-three-js
If you have a suggestion or change I'd appreciate it
The example app expects all fields of Post and Author entries to be present and fails to build if any are missing. This PR adds a "required" validation to fields of both content types to avoid bulid errors.
CC @stefanjudis
* removed redundant imports and replaced the fragment with the shorthand syntax
* Brought back the component import
Co-authored-by: Joe Haddad <joe.haddad@zeit.co>
* npm init next-app
* add example video-player component with HLS.js
* add README for example with HLS.js
* update name in package.json
* Update examples/with-hls-js/.gitignore
Co-authored-by: Luis Alvarez D. <luis@vercel.com>
* Update license to MIT
Co-authored-by: Luis Alvarez D. <luis@vercel.com>
* Update next version to latest
Co-authored-by: Luis Alvarez D. <luis@vercel.com>
* remove unused pages/api
Co-authored-by: Luis Alvarez D. <luis@vercel.com>
* sort posts by date in descending order
Hi, I'm extending getAllPosts function to sort posts array by date in descending order.
Any feedback is appreciated
* sort posts by date timestamp in descending order
* Lint fix
Co-authored-by: Luis Alvarez <luis@vercel.com>
* add new example with-react-bootstrap
* use vanilla react-bootstrap components to implement index page
* clear unnecessary comments
* remove private property in package.json
* Updates
Co-authored-by: Luis Alvarez <luis@vercel.com>
* Resolve bug with Prismic Locales
add configuration for not default locale
* Resolve bug with Prismic Locales
Add configuration for Prismic locale.
More information about bug:
* Fixes and removed unrequired changes
Co-authored-by: Luis Alvarez <luis@zeit.co>
* Update deps
* Run "node-check-update -u"
* "graphql" keeps ^14 since other libs expect it
* Install apollo-link and apollo-cache because @apollo/react-common
wants it as peer-deps
* Add graphql-let/schema/loader
* This enables HMR from modifying *.graphqls.
* Add resolver context
* Remove JSDoc, respect TypeScript defs
* ncu -u
* Keep using graphql@^14.6.0 for the other deps
* fix: Migrate to graphql-let@0.10.0
* Removed duplicated deps
* Updated check
Co-authored-by: Luis Alvarez <luis@zeit.co>
The method initializeStore is only being used locally by useStore.
By having this exported I initially thought the consumer would have to call this as setup globally and then call useStore as well for each consuming component.
Downloading the sample I saw it's only useStore that is being used by the consuming app and this could be made clear by not exporting initializeStore.
* Add example with Magic and Passport.js
* Tweaked wording on README
* Fixed lint error
* Fixed prettier error
* Update examples/magic/README.md
Removed Download manually section from README
Co-Authored-By: Joe Haddad <timer150@gmail.com>
* Removed dependency on passport and express + cleanup
* Changed ZEIT brand to Vercel
* Updated readme instructions and secrets
* Renamed example
* Changed db comment
Co-authored-by: Joe Haddad <timer150@gmail.com>
Co-authored-by: Luis Alvarez <luis@zeit.co>
* add rosetta example
* add comment
* add example for ssr
* add debug example, rerender when i18n keys are added
* output active locale, fix interpolation, fix cases for SSR and CSR
* add useful comments
* address pr issues
* update name in readme
* improve wording
* rename folder
* fix prop typo, add redirects
* load specific i18n json file in getStatisProps
Dashboard dont use any ssr technique
* use ext
* improve example
* Updated example
Co-authored-by: Luis Alvarez <luis@zeit.co>
* update postcss.config.js to fix warnings
Return empty array if the condition is not met to avoid a null/undefined PostCSS plugin.
Related PR: https://github.com/zeit/next.js/pull/11366
* style: correct linting error
* Fix incorrect link in with-passport example
Closes#11961
* hardcode link for with-passport README
* fix link
Co-Authored-By: Luis Alvarez D. <luis@zeit.co>
Co-authored-by: Luis Alvarez D. <luis@zeit.co>
* fix: with-mobx
* refactor: up link
* refactor: npm run prettier-fix
* refactor: server side render
* Updated store implementation and pages
* Updated readme
Co-authored-by: wangcheng <wangcheng@deepblueai.com>
Co-authored-by: Luis Alvarez <luis@zeit.co>