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

React fireworks - no fireworks is showing #33

Closed
ivonigC opened this issue Nov 8, 2021 · 2 comments
Closed

React fireworks - no fireworks is showing #33

ivonigC opened this issue Nov 8, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@ivonigC
Copy link

ivonigC commented Nov 8, 2021

I tried the following implementation and I just get a black square with no fireworks showing up whatsoever. Any idea why ?

import { FireworksOptions } from "fireworks-js/dist/fireworks";
import { Fireworks } from "fireworks-js/dist/react";
import React, { CSSProperties } from "react";


const UserScoreScreen = ({
}: {
}) => {
  const options: FireworksOptions = {
    speed: 3,
  };
  const FireworksStyle: CSSProperties = {
    width: "400px",
    height: "400px",
    background: "#000",
    position: "absolute",
  };

  return (
    <>
      <div className="relative flex flex-col items-center h-full p-4 border-2 border-white border-opacity-30 bg-glassomorphism3 rounded-10">
        <div className="z-40">
          <Fireworks options={options} style={FireworksStyle} />
        </div>
      </div>
    </>
  );
};


export default UserScoreScreen;
@crashmax-dev crashmax-dev added the bug Something isn't working label Nov 8, 2021
@crashmax-dev
Copy link
Owner

@ivonigC Thanks for issue! This is currently a bug of the React component. Please use fireworks-js@1.2.2 Will next update this fixed 😄

@crashmax-dev
Copy link
Owner

crashmax-dev commented Nov 10, 2021

@ivonigC Update tofireworks-js@latest and check out the new example

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants