Skip to content

Commit

Permalink
getString
Browse files Browse the repository at this point in the history
  • Loading branch information
bhelx committed Dec 20, 2023
1 parent 1881f2e commit 9b9d6c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export function compileTemplate() {

export function render() {
const { name, props } = JSON.parse(Host.inputString())
const code = Var.get(`template-${name}`)
const code = Var.getString(`template-${name}`)
let view = reactTools.transform(code, {}) + '; return App'
let [globalKeys, globalRefs] = getGlobals()
globalKeys.push('React')
Expand Down

0 comments on commit 9b9d6c2

Please sign in to comment.