Giter VIP home page Giter VIP logo

Comments (7)

jrynlds avatar jrynlds commented on March 29, 2024 1

I work with @consultwithmike
I put together this plunker from another example on the ui-router-react, but switched out to use 'hashLocationPlugin' ... problem is that this example (plunker) is working... but my/our code is still not

plunker with hashLocationPlugin

from react.

consultwithmike avatar consultwithmike commented on March 29, 2024 1

@johnrgit @mfreeman-xtivia @elboman

I found the culprit. I was using the https://github.com/insin/babel-plugin-react-html-attrs plugin for the JSX transform in Webpack and that was changing class to className during build.

Won't be using that plugin again!

from react.

elboman avatar elboman commented on March 29, 2024

Hi,
code looks fine, I'll take a look at the hashLocationPlugin to see if that's causing the problem.
Can you reproduce the error in a jsbin/plunker? Because it may be related to other things, so we should narrow down the variables.

from react.

mfreeman-xtivia avatar mfreeman-xtivia commented on March 29, 2024

Is this still an issue? I think I am seeing the same behavior using the hashLocationPlugin

from react.

consultwithmike avatar consultwithmike commented on March 29, 2024

@mfreeman-xtivia yep I'm still seeing this issue, but I can't get the jsbin/plunker to work for me. They just never did work right with React being pulled in and stuff. Clearly I'm doing something wrong there.

from react.

jrynlds avatar jrynlds commented on March 29, 2024

@consultwithmike @mfreeman-xtivia @elboman
here's a better plunker, closer to what Mike posted... but again... it is working fine, but I'm not able to figure out why it is not working in my code.
plunker closer to what was originally posted

from react.

jrynlds avatar jrynlds commented on March 29, 2024

I was using 0.4.0 ... but I just upgraded to 0.5.0 to see where that would get me.

Still not working, but now it is throwing this error:

Failed prop type: The prop class is marked as required in UISrefActive, but its value is undefined.

which is strange, as my code is such:

<div className="sub" id={"menu_" + UrlName}>
	<UISrefActive class={'active'}>
		<UISref to={UrlName}>
			<a>{Name}</a>
		</UISref>
	</UISrefActive>
</div>				

I tried it both with {} and without; class='active' and class={'active'}

from react.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.