cortex-js / cortexjs.io

Source for the cortexjs.io website
http://cortexjs.io/
51 stars 19 forks source link

Legacy React Doc link in "Using MathLive with React" Section #29

Closed noobyogi0010 closed 1 year ago

noobyogi0010 commented 1 year ago

When you are checking out MathLive and navigate to the "Using MathLive with React" section. At the bottom of the page, there is a link to React docs with the text "Learn more about React and Web Components" which links to legacy react docs for Web Component. I would love to update it to the latest react documentation if no one has any objections. Thanks. PS: Adding an ss for reference.

image

arnog commented 1 year ago

What link do you propose to update it to?

noobyogi0010 commented 1 year ago

The Quick Start page of React learn: https://react.dev/learn

arnog commented 1 year ago

That looks like a good general purpose introduction to using React, but I'm looking for a page that discuss specifically how to use web components like <math-field> along with React. The old documentation page includes some useful information that I haven't seen elsewhere.

noobyogi0010 commented 1 year ago

You have a point. How about this one: https://react.dev/learn/your-first-component ? It talks extensively about what components are and how you can use them.

arnog commented 1 year ago

Ah, I see the confusion. That page is about React components. I'm looking for a page that discusses using *web components inside React.

Web components and React components are two completely different things, but unfortunately their name are confusing, and sometimes (as in the page you cite), "component" is used without clarifying if talking about web components or React components...

arnog commented 1 year ago

The documentation has been updated.