Skip to content

Commit 39961bd

Browse files
committed
Use .jsx extension for scaffolded widget JS
1 parent 153c4e5 commit 39961bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/scaffold_widget.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ addWebpackConfig <- function(name) {
7979

8080
addWidgetJS <- function(name, edit){
8181
file <- renderFile(
82-
sprintf('srcjs/%s.js', name),
82+
sprintf('srcjs/%s.jsx', name),
8383
'templates/widget_js.txt',
8484
'boilerplate for widget JavaScript bindings',
8585
list(name = name)

0 commit comments

Comments
 (0)