I would like to use the react-d3-library in java application. I already integrated the javascript in java application by using Nashorn. But I could not find the solution how to integrate with reactjs.
this is my integrating with javascript code.
...
ScriptEngine engine = new ScriptEngineManager().getEngineByName("nashorn");
engine.eval(new FileReader("res/test.js"));
Invocable invocable = (Invocable) engine;
Object result = invocable.invokeFunction("fun2", "BarChart");
...
How can I use the reactjs module like above code? Help me. Thanks.