reactjs / fi.react.dev

(Work in progress) React documentation website in Finnish
https://fi-react-dev.vercel.app
Creative Commons Attribution 4.0 International
2 stars 2 forks source link

Fix heading level issue #7

Closed mirorauhala closed 1 year ago

mirorauhala commented 1 year ago

The third heading level caused an error on JavaScript in JSX with curly braces.

TypeError: Cannot read properties of undefined (reading 'current') at src/components/MDX/Challenges/Navigation.tsx (68:44)

Changing to the fourth heading level fixes this. This PR also fixes the heading level for Importing and exporting components, where the heading level caused scroll jumps.

github-actions[bot] commented 1 year ago

Size changes

## 📦 Next.js Bundle Analysis for react-dev This analysis was generated by the [Next.js Bundle Analysis action](https://github.com/hashicorp/nextjs-bundle-analysis). 🤖 This PR introduced no changes to the JavaScript bundle! 🙌