fidr / phoenix_live_react

Render React.js components in Phoenix LiveView views
MIT License
238 stars 42 forks source link

Warnings when attempting to use React 18 #31

Open apreifsteck opened 8 months ago

apreifsteck commented 8 months ago

Hello!

I was recently attempting to get started with this library, and following the instructions, got this warning: image

Here is the component I was trying to use, in it's entirety:

import React from "react"
export default function Hello() {
  return (
    <>
      <h1>Hello from React</h1>
    </>
  )
}

package.json dependencies:

  "dependencies": {
    "jest-environment-jsdom": "^29.5.0",
    "react": "^18.2.0",
    "react-dom": "^18.2.0"
  }
adamwdennis commented 1 week ago

Is there a way around this?

apreifsteck commented 1 week ago

We ended up downgrading to React 17, if I recall correctly.