Skip to content
New issue

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

docs(cn): adding-interactivity #605

Closed
wants to merge 25 commits into from

Conversation

wenmin92
Copy link
Contributor

rachelnabors and others added 23 commits October 22, 2021 01:18
Co-authored-by: Dan Abramov <[email protected]>
Co-authored-by: Sylwia Vargas <[email protected]>
Co-authored-by: Dan Lebowitz <[email protected]>
Co-authored-by: Razvan Gradinar <[email protected]>
Co-authored-by: Jared Palmer <[email protected]>
Co-authored-by: Dane Grant <[email protected]>
Co-authored-by: Dustin Goodman <[email protected]>
Co-authored-by: Rick Hanlon <[email protected]>
Co-authored-by: Maggie Appleton <[email protected]>
Co-authored-by: Alex Moldovan <[email protected]>
Co-authored-by: Ives van Hoorne <[email protected]>
Co-authored-by: Brian Vaughn <[email protected]>
The `appId` was retrieved from props but the `<Search>` component is never instantiated with props. So the preconnect link targeted an unknown search cluster:

```html
<link rel="preconnect" href="https://undefined-dsn.algolia.net" crossorigin="true">
```

This fixes the preconnect link by getting the `appId` from the website config.
* fix: googleTranslate breaking terminal blocks

* chore: prettier magic
# Conflicts:
#	.circleci/config.yml
#	content/blog/2020-09-22-introducing-the-new-jsx-transform.md
#	content/blog/2020-10-20-react-v17.md
#	content/blog/2020-12-21-data-fetching-with-react-server-components.md
#	content/blog/2021-06-08-the-plan-for-react-18.md
#	content/community/articles.md
#	content/community/conferences.md
#	content/community/courses.md
#	content/community/examples.md
#	content/community/external-resources.md
#	content/community/meetups.md
#	content/community/nav.yml
#	content/community/podcasts.md
#	content/community/videos.md
#	content/docs/accessibility.md
#	content/docs/add-react-to-a-website.md
#	content/docs/addons-shallow-renderer.md
#	content/docs/addons-test-utils.md
#	content/docs/cdn-links.md
#	content/docs/code-splitting.md
#	content/docs/codebase-overview.md
#	content/docs/components-and-props.md
#	content/docs/composition-vs-inheritance.md
#	content/docs/concurrent-mode-adoption.md
#	content/docs/concurrent-mode-intro.md
#	content/docs/concurrent-mode-patterns.md
#	content/docs/concurrent-mode-reference.md
#	content/docs/concurrent-mode-suspense.md
#	content/docs/conditional-rendering.md
#	content/docs/context.md
#	content/docs/create-a-new-react-app.md
#	content/docs/cross-origin-errors.md
#	content/docs/design-principles.md
#	content/docs/error-boundaries.md
#	content/docs/faq-ajax.md
#	content/docs/faq-build.md
#	content/docs/faq-functions.md
#	content/docs/faq-internals.md
#	content/docs/faq-state.md
#	content/docs/faq-structure.md
#	content/docs/faq-styling.md
#	content/docs/faq-versioning.md
#	content/docs/forms.md
#	content/docs/forwarding-refs.md
#	content/docs/fragments.md
#	content/docs/getting-started.md
#	content/docs/handling-events.md
#	content/docs/hello-world.md
#	content/docs/higher-order-components.md
#	content/docs/hooks-custom.md
#	content/docs/hooks-effect.md
#	content/docs/hooks-faq.md
#	content/docs/hooks-intro.md
#	content/docs/hooks-overview.md
#	content/docs/hooks-reference.md
#	content/docs/hooks-rules.md
#	content/docs/hooks-state.md
#	content/docs/how-to-contribute.md
#	content/docs/implementation-notes.md
#	content/docs/integrating-with-other-libraries.md
#	content/docs/introducing-jsx.md
#	content/docs/jsx-in-depth.md
#	content/docs/legacy-context.md
#	content/docs/legacy-event-pooling.md
#	content/docs/lifting-state-up.md
#	content/docs/lists-and-keys.md
#	content/docs/nav.yml
#	content/docs/optimizing-performance.md
#	content/docs/portals.md
#	content/docs/react-without-es6.md
#	content/docs/react-without-jsx.md
#	content/docs/reconciliation.md
#	content/docs/reference-dom-elements.md
#	content/docs/reference-events.md
#	content/docs/reference-glossary.md
#	content/docs/reference-javascript-environment-requirements.md
#	content/docs/reference-profiler.md
#	content/docs/reference-react-component.md
#	content/docs/reference-react-dom-server.md
#	content/docs/reference-react-dom.md
#	content/docs/reference-react.md
#	content/docs/reference-test-renderer.md
#	content/docs/refs-and-the-dom.md
#	content/docs/release-channels.md
#	content/docs/render-props.md
#	content/docs/rendering-elements.md
#	content/docs/state-and-lifecycle.md
#	content/docs/static-type-checking.md
#	content/docs/strict-mode.md
#	content/docs/testing-environments.md
#	content/docs/testing-recipes.md
#	content/docs/testing.md
#	content/docs/thinking-in-react.md
#	content/docs/typechecking-with-proptypes.md
#	content/docs/uncontrolled-components.md
#	content/docs/web-components.md
#	content/footerNav.yml
#	content/headerNav.yml
#	content/home/examples/a-component-using-external-plugins.md
#	content/home/examples/a-simple-component.md
#	content/home/examples/a-stateful-component.md
#	content/home/examples/an-application.md
#	content/home/marketing/component-based.md
#	content/home/marketing/declarative.md
#	content/home/marketing/learn-once-write-anywhere.md
#	content/tutorial/nav.yml
#	content/tutorial/tutorial.md
#	content/warnings/dont-call-proptypes.md
#	content/warnings/invalid-aria-prop.md
#	content/warnings/invalid-hook-call-warning.md
#	content/warnings/legacy-factories.md
#	content/warnings/refs-must-have-owner.md
#	content/warnings/special-props.md
#	content/warnings/unknown-prop.md
#	examples/context/motivation-problem.js
#	examples/context/motivation-solution.js
#	examples/context/multiple-contexts.js
#	examples/context/theme-detailed-app.js
#	examples/context/theme-detailed-theme-context.js
#	examples/context/updating-nested-context-app.js
#	examples/context/updating-nested-context-context.js
#	examples/context/updating-nested-context-theme-toggler-button.js
#	examples/forwarding-refs/customized-display-name.js
#	examples/forwarding-refs/fancy-button-ref.js
#	examples/forwarding-refs/fancy-button-simple-ref.js
#	examples/forwarding-refs/fancy-button.js
#	examples/forwarding-refs/log-props-after.js
#	examples/react-component-reference/get-snapshot-before-update.js
#	examples/update-on-async-rendering/adding-event-listeners-after.js
#	examples/update-on-async-rendering/adding-event-listeners-before.js
#	examples/update-on-async-rendering/adding-event-listeners-create-subscription.js
#	examples/update-on-async-rendering/fetching-external-data-after.js
#	examples/update-on-async-rendering/fetching-external-data-before.js
#	examples/update-on-async-rendering/react-dom-properties-before-update-after.js
#	examples/update-on-async-rendering/react-dom-properties-before-update-before.js
#	examples/update-on-async-rendering/updating-external-data-when-props-change-after.js
#	examples/update-on-async-rendering/updating-external-data-when-props-change-before.js
#	examples/update-on-async-rendering/updating-state-from-props-after.js
#	examples/update-on-async-rendering/using-react-lifecycles-compat.js
#	gatsby-config.js
#	package.json
#	plugins/gatsby-remark-header-custom-ids/gatsby-ssr.js
#	public/images/blog/hooks/1_yJyHd9CKkqgToX7DtI6fcg.png
#	public/images/blog/hooks/[email protected]
#	src/components/Banner/Banner.js
#	src/components/CodeEditor/CodeEditor.js
#	src/components/CodeExample/CodeExample.js
#	src/components/ErrorDecoder/ErrorDecoder.js
#	src/components/LayoutHeader/DocSearch.js
#	src/components/LayoutHeader/Header.js
#	src/components/MarkdownPage/MarkdownPage.js
#	src/html.js
#	src/pages/blog/2013/06/02/jsfiddle-integration.md
#	src/pages/blog/2013/06/05/why-react.md
#	src/pages/blog/2013/08/19/use-react-and-jsx-in-python-applications.md
#	src/pages/blog/2015/03/30/community-roundup-26.md
#	src/pages/blog/2015/12/18/react-components-elements-and-instances.md
#	src/pages/blog/2016/01/12/discontinuing-ie8-support.md
#	src/pages/blog/2016/07/11/introducing-reacts-error-code-system.md
#	src/pages/blog/2018/03/27/update-on-async-rendering.md
#	src/pages/blog/2018/06/07/you-probably-dont-need-derived-state.md
#	src/pages/blog/2018/09/10/introducing-the-react-profiler.md
#	src/pages/blog/2018/10/01/create-react-app-v2.md
#	src/pages/blog/2018/10/23/react-v-16-6.md
#	src/pages/blog/2018/11/13/react-conf-recap.md
#	src/pages/blog/2018/11/27/react-16-roadmap.md
#	src/pages/blog/2018/12/19/react-v-16-7.md
#	src/pages/blog/2019/02/06/react-v16.8.0.md
#	src/pages/blog/2019/08/08/react-v16.9.0.md
#	src/pages/blog/2019/08/15/new-react-devtools.md
#	src/pages/blog/2019/10/22/react-release-channels.md
#	src/pages/blog/2020/02/26/react-v16.13.0.md
#	src/pages/blog/2020/08/10/react-v17-rc.md
#	src/pages/community/index.md
#	src/pages/community/meet-the-team.md
#	src/pages/index.js
#	src/pages/languages.js
#	src/pages/versions.js
#	src/site-constants.js
#	src/templates/components/NavigationFooter/NavigationFooter.js
#	yarn.lock
# Conflicts:
#	src/pages/community/meet-the-team.md
@QC-L
Copy link
Member

QC-L commented Nov 21, 2021

@wenmin92 请调整目录和分支,重新提交 PR

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

Successfully merging this pull request may close these issues.

10 participants