Skip to content

Conversation

@jaeyson
Copy link
Contributor

@jaeyson jaeyson commented Apr 30, 2025

Contributor checklist

  • My commit messages follow the Conventional Commit Message Format
    For example: fix: Multiply by appropriate coefficient, or
    feat(Calculator): Correctly preserve history
    Any explanation or long form information in your commit message should be
    in a separate paragraph, separated by a blank line from the primary message

Related #39, #30, #29

Hi @mrdotb 👋🏾, thank you for this great library 🙏🏾. Here are the following things I changed:

  • I'm following this tailwind upgrade guide. If there's a package (ie. https://blocks.tremor.so/blocks) that's using v3, we have to add @config "../tailwind.config.js"; in app.css since it's not automatically detected by v4.
  • With React, I'm using npx codemod@latest react/19/migration-recipe --prefix assets/ to update any affected codes (none) and following Removed deprecated React APIs.
  • Bumped Vite version.
  • Minor changes like adding cursor-pointer on buttons (tbh I have no idea why), context.jsx to context.tsx in live_react_examples.ex and other renamed Tailwind utilities.

Ran mix test, smoke test, seems fine or maybe I missed something here. 🙏🏾🙏🏾🙏🏾

Here are the following things I changed:
- I'm following this [tailwind upgrade guide](https://tailwindcss.com/docs/upgrade-guide). If there's a package (ie. https://blocks.tremor.so/blocks) that's using `v3`, we have to add `@config "../tailwind.config.js";` in `app.css` since it's not automatically detected by `v4`.
- With React, I'm using `npx codemod@latest react/19/migration-recipe --prefix assets/` to update any affected codes (none) and following [Removed deprecated React APIs](https://react.dev/blog/2024/04/25/react-19-upgrade-guide#removed-deprecated-react-apis).
- Bumped Vite version.
- Minor changes like adding `cursor-pointer` on buttons (tbh I have no idea why), `context.jsx` to `context.tsx` in `live_react_examples.ex` and other [renamed Tailwind utilities](https://tailwindcss.com/docs/upgrade-guide#renamed-utilities).

Ran mix test, smoke test, seems fine or maybe I missed something here.
Copy link
Owner

@mrdotb mrdotb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👋 Thanks for the PR!
I tested the demo with the new version and everything looks good.

Just a couple of things I noticed:

  1. The autoprefixer dependency doesn't seem to be used anymore.
  2. This documentation section should be updated to reflect that:
    https://github.com/mrdotb/live_react/blob/main/guides/installation.md#adjusting-your-own-packagejson

Also, could you please rebase and update the commit message to follow the conventional commits format?

Thanks!

@mrdotb
Copy link
Owner

mrdotb commented Apr 30, 2025

closes #39, closes #30, closes #29

@mrdotb mrdotb merged commit e1e155f into mrdotb:main Apr 30, 2025
1 check passed
@mrdotb
Copy link
Owner

mrdotb commented Apr 30, 2025

Thank you for this PR 👍
I will release it and redeploy the demo when I have some time available.

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