Skip to content

Commit a42be1e

Browse files
committed
Simplify JSX processor
1 parent c8ecba2 commit a42be1e

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

lib/react/jsx/processor.rb

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,8 @@
11
module React
22
module JSX
33
class Processor
4-
def self.instance
5-
@instance ||= new
6-
end
7-
84
def self.call(input)
9-
instance.call(input)
10-
end
11-
12-
def call(input)
13-
{data: JSX::transform(input[:data])}
5+
JSX::transform(input[:data])
146
end
157
end
168
end

0 commit comments

Comments
 (0)