pmndrs / react-zdog

⚡️🐶 React bindings for zdog
MIT License
443 stars 21 forks source link

Doesn't work with cra #25

Closed mogmog closed 1 year ago

mogmog commented 4 years ago

create-react-app zdogreacttest

yarn add zdog react-zdog

replace the contents of app.js with the following minimal app

import React from 'react';
import { Illustration, Shape } from 'react-zdog'

function App() {
  return (
      <Illustration zoom={8}>
        <Shape stroke={20} color="lightblue" rotate={{ x: 5 }} />
      </Illustration>
  );
}

export default App;

yarn start

Expected behavior - a shape

Actual behavior - nothing rendered.

No errors in console but when I was fiddling I did once get it to work and saw some errors with event listeners. Cant reproduce anything working now though, so its hard to say.

zbaker94 commented 4 years ago

Can confirm that this is not working on CRA for me either. Would love some update on this @drcmda