Closed ryanlloydfrench closed 3 years ago
You need to define the flkty
variable first.
At the moment, in your <Flickity>
component you are trying to assign a value to an undefined/non-existing flkty
variable.
In React v16.8+, you can achieve it by:
let flkty = null;
const myCustomNext = () => {
flkty.next();
};
<Flickity flickityRef={c => (flkty = c)}>
...
</Flickity>
Hi,
My code is set up like the following however I keep getting Cannot read property 'flkty' of undefined
How come I cannot access this? Is there a fix?