v22.6.0
tagged this
21 Apr 09:08
… export normalizePath helper on Logic/ViewsFlow.js This is useful to use relative paths within logic files, eg, in a logic file, you could do: ``` // Say this is `/App/Stuff.view.logic.js` import { normalizePath } from 'Logic/ViewsFlow.js' import Stuff from './Stuff.view.js' import React from 'react' export default function StuffLogic(props) { console.log(normalizePath(props.viewPath, 'No')) // will output `/App/No` return <Stuff /> } ```
Assets 2
-
2020-04-21T09:08:15Z -
2020-04-21T09:08:15Z - Loading