I don't know if it was because I didn't use the template for NextJS, I wanted to set it up from scratch kinda.
When I ran
prismic sm --create-slice I created my slice, for instance we can call it SimpleHero.
The folder name comes out alright, and the directory structure.
What I find interesting is the name of the slice function inside index.js, it's called
const MySlice. Surely it would be called
I know that the index.js at the top level
@/slices directory exports the default from each of them to the correct name.
But would I be wrong in thinking that it would be clearer if the slice generated has a appropriate function name?
Open to correction on this