Open TurtleWolfe opened 4 years ago
I thought it would be a good review to do the React tic tac toe tutorial in StoryBook.. Then I did it again but stopped at where it's adding the onClick
alert to dissect the basic issue at its core.. I'm trying to get the action panel to show the results of the onClick?
I forked the Button story and customized the action.. so next I customize the Button to make a dice. I expected it to still show the same action as before.. but now it shows none. I was going to work on learning how to make the action panel to show it calling a random function or what it rolled.. but I'm more confused why it's showing nothing. Is there a way I should be importing the function into StoryBook.. or since they are both called
on click
they could be conflicting to show nothing?MyDice.js
MyDice.stories.js
https://turtlewolf.github.io/disBook/?path=/story/mydice--text