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

Add React Form Lab to main repo #661

Open
jdwilkin4 opened this issue Nov 4, 2024 · 4 comments
Open

Add React Form Lab to main repo #661

jdwilkin4 opened this issue Nov 4, 2024 · 4 comments
Labels
full stack cert Labs Team This work is for the labs team only Q1 2025

Comments

@jdwilkin4
Copy link
Contributor

Since this prototype has been created, we can now add it to main with tests

#553

@jdwilkin4 jdwilkin4 added full stack cert Labs Team This work is for the labs team only labels Nov 4, 2024
@a2937
Copy link
Member

a2937 commented Nov 4, 2024

I have a silly question if you don't mind. How come whenever the script is placed inside of script.js instead of the html file, the preview fails to work due to JSX not being supported? It's been driving me mad for months. I was starting to get convinced that the only way we could use front-end libraries in the curriculum properly was to use VueJS.

The reasoning being, I was able to get VueJS to work in our editor with a CDN using the three main files; index.html, styles.css, and script.js. Thought it was without JSX.

@jdwilkin4
Copy link
Contributor Author

@a2937

Oliver did a write up in this PR here that should shed light on what is going on

freeCodeCamp/freeCodeCamp#55860

@a2937
Copy link
Member

a2937 commented Nov 4, 2024

Okay so there is a pipeline that transforms the JSX babel.

Is it possible to get the script section away out of the html file and into it's own index.jsx file? I like my JavaScript away from the HTML usually.

@jdwilkin4
Copy link
Contributor Author

Is it possible to get the script section away out of the html file and into it's own index.jsx file?

Short answer, don't know yet.
The team is playing around with that to see if it is possible.

But right now it looks like all in one file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
full stack cert Labs Team This work is for the labs team only Q1 2025
Projects
None yet
Development

No branches or pull requests

2 participants