spectacle-code-slide not rendering

后端 未结 1 1039
陌清茗
陌清茗 2021-01-24 15:57

I am trying to use spectacle-code-slide for a presentation. Currently I have been unable to get it to render anything. Here is what I have done:

1 Cloned spectacle-boile

相关标签:
1条回答
  • 2021-01-24 16:26

    Well, you can't just replace that whole file. You should just change the section that matters, the render method. And import the components of course..
    For example, if you really did replace the whole file, you don't even have the theme variable declared..

    You can see an example of that working here
    https://github.com/andrejunges/react-presentation/blob/master/presentation/index.js

    0 讨论(0)
提交回复
热议问题