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

23 kevintamakuwala #25

Merged
merged 4 commits into from
Oct 18, 2023
Merged

23 kevintamakuwala #25

merged 4 commits into from
Oct 18, 2023

Conversation

kevintamakuwala
Copy link
Contributor

All the urls are working fine.

Include these guidelines in README.

To create a new component follow these steps:

  • Go to package.JSON file and replace the homepage url https://csiddu.github.io/Frontend-Treasure/components/react/build/ with http://127.0.0.1:5500/components/react/build/ i.e your live server url followed by components/react/build/. This is necessary as Production Url has to be replaced with Live Server's IP.
  • Make an entry in App.js > path object eg: <component-name>: <Component/>
  • Make an entry for url in components.JSON. eg: react/build/?<component-name>
  • Make an entry for url in Layout.jsx. For local development use: /components/react/build/?<component-name> and before committing make it to /Frontend-Treasure/components/react/build/?<component-name>. This is because repo name should be included for github pages deployment.
  • Finally add your component card in components.html.
  • Note: During development, if your code doesn't work, make sure to build react app. If still any issue persists, read the steps again.

  • Before committing:

  1. Always explicitly, build the react project, every-time before committing npm run build. Only then your changes will be reflected in static build.
  2. Make sure the Urls in package.json and Layout.jsx are production friendly, as mentioned earlier. (Refer code for more understanding).

@github-actions
Copy link

Hello! 👋 Thank you @kevintamakuwala for your pull request!
We appreciate your contribution to "Frontend-Treasure" for Hacktoberfest. Your effort helps make our project better. 🌟
Our team will review your PR soon. In the meantime, feel free to explore more ways to contribute or join our community discussions. Your involvement is important to us!
Keep up the great work! 🚀

@Nisarg155 Nisarg155 merged commit 2ebdc26 into csiddu:main Oct 18, 2023
1 check passed
@kevintamakuwala
Copy link
Contributor Author

@Nisarg155 please revert this commit, there is some issue in react rendering for this repository. In my testing environment it is working perfectly fine: https://kevintamakuwala.github.io/Test-Treasure/components/react/build/?slider

@Nisarg155
Copy link
Member

okay

@Nisarg155
Copy link
Member

should i reset the branch to the last commit

@Nisarg155 Nisarg155 removed enhancement New feature or request hacktoberfest-accepted labels Oct 18, 2023
@kevintamakuwala
Copy link
Contributor Author

Yes, but leave it I have created a new branch and raised a PR. Merge that it is working on Test env.

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.

2 participants